- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/monitor.c
rc81ebf9 rbe3d020 212 212 ScheduleInternal( locks, count, threads, thread_count ); 213 213 214 215 214 //WE WOKE UP 216 215 … … 313 312 ScheduleInternal( locks, count, &signallee, 1 ); 314 313 315 316 317 318 314 LIB_DEBUG_PRINT_SAFE( "Back from signal block\n" ); 319 315 … … 334 330 ); 335 331 return this->blocked.head->user_info; 336 }337 338 //-----------------------------------------------------------------------------339 // Internal scheduling340 void __accept_internal( unsigned short count, __acceptable_t * acceptables, void (*func)(void) ) {341 // thread_desc * this = this_thread();342 343 // unsigned short count = this->current_monitor_count;344 // unsigned int recursions[ count ]; //Save the current recursion levels to restore them later345 // spinlock * locks [ count ]; //We need to pass-in an array of locks to ScheduleInternal346 347 // lock_all( this->current_monitors, locks, count );348 349 350 351 352 353 // // // Everything is ready to go to sleep354 // // ScheduleInternal( locks, count, threads, thread_count );355 356 357 // //WE WOKE UP358 359 360 // //We are back, restore the owners and recursions361 // lock_all( locks, count );362 // restore_recursion( this->monitors, recursions, count );363 // unlock_all( locks, count );364 332 } 365 333
Note:
See TracChangeset
for help on using the changeset viewer.