- File:
-
- 1 edited
-
libcfa/src/concurrency/clib/cfathread.cfa (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/clib/cfathread.cfa
rc457dc41 r5c04e82 27 27 extern void __cfactx_invoke_thread(void (*main)(void *), void * this); 28 28 } 29 30 extern Time __kernel_get_time();31 29 32 30 //================================================================================ … … 119 117 120 118 this_thrd->state = Ready; 121 enable_interrupts( );119 enable_interrupts( __cfaabi_dbg_ctx ); 122 120 } 123 121 … … 267 265 int cfathread_cond_timedwait(cfathread_cond_t *restrict cond, cfathread_mutex_t *restrict mut, const struct timespec *restrict abstime) __attribute__((nonnull (1,2,3))) { 268 266 Time t = { *abstime }; 269 timespec curr; 270 clock_gettime( CLOCK_REALTIME, &curr ); 271 Time c = { curr }; 272 if( wait( (*cond)->impl, (*mut)->impl, t - c ) ) { 267 if( wait( (*cond)->impl, (*mut)->impl, t ) ) { 273 268 return 0; 274 269 }
Note:
See TracChangeset
for help on using the changeset viewer.