Changeset 0c09f2b in mainline for uspace/lib/libc/generic/time.c
- Timestamp:
- 2007-11-19T16:34:25Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bc50fc42
- Parents:
- 2e51969
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/time.c
r2e51969 r0c09f2b 188 188 189 189 /** Wait unconditionally for specified number of microseconds */ 190 voidusleep(unsigned long usec)190 int usleep(unsigned long usec) 191 191 { 192 192 atomic_t futex = FUTEX_INITIALIZER; … … 194 194 futex_initialize(&futex, 0); 195 195 futex_down_timeout(&futex, usec, 0); 196 return 0; 196 197 } 197 198 … … 211 212 seconds -= period; 212 213 } 214 return 0; 213 215 } 214 216
Note:
See TracChangeset
for help on using the changeset viewer.