Changeset 5a5b087 in mainline
- Timestamp:
- 2015-06-07T12:13:42Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c3f7d37
- Parents:
- 8dc9b72
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/fibril_synch.c
r8dc9b72 r5a5b087 477 477 /* Acknowledge timer fibril has finished cleanup. */ 478 478 timer->state = fts_clean; 479 fibril_condvar_broadcast(&timer->cv); 479 480 fibril_mutex_unlock(timer->lockp); 480 free(timer);481 481 482 482 return 0; … … 525 525 timer->state = fts_cleanup; 526 526 fibril_condvar_broadcast(&timer->cv); 527 528 /* Wait for timer fibril to terminate */ 529 while (timer->state != fts_clean) 530 fibril_condvar_wait(&timer->cv, timer->lockp); 527 531 fibril_mutex_unlock(timer->lockp); 532 533 free(timer); 528 534 } 529 535
Note:
See TracChangeset
for help on using the changeset viewer.