123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- #include "pthread.h"
- #include "implement.h"
- void *
- pthread_timechange_handler_np (void *arg)
- {
- int result = 0;
- pthread_cond_t cv;
- pte_osMutexLock (pte_cond_list_lock);
- cv = pte_cond_list_head;
- while (cv != NULL && 0 == result)
- {
- result = pthread_cond_broadcast (&cv);
- cv = cv->next;
- }
- pte_osMutexUnlock(pte_cond_list_lock);
- return (void *) (result != 0 ? EAGAIN : 0);
- }
|