Changeset c81ebf9 for src/libcfa/concurrency/monitor.c
- Timestamp:
- Jun 6, 2017, 11:45:13 AM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- c5ac6d5
- Parents:
- 7b13aeb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/monitor.c
r7b13aeb rc81ebf9 212 212 ScheduleInternal( locks, count, threads, thread_count ); 213 213 214 214 215 //WE WOKE UP 215 216 … … 312 313 ScheduleInternal( locks, count, &signallee, 1 ); 313 314 315 316 317 314 318 LIB_DEBUG_PRINT_SAFE( "Back from signal block\n" ); 315 319 … … 330 334 ); 331 335 return this->blocked.head->user_info; 336 } 337 338 //----------------------------------------------------------------------------- 339 // Internal scheduling 340 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 later 345 // spinlock * locks [ count ]; //We need to pass-in an array of locks to ScheduleInternal 346 347 // lock_all( this->current_monitors, locks, count ); 348 349 350 351 352 353 // // // Everything is ready to go to sleep 354 // // ScheduleInternal( locks, count, threads, thread_count ); 355 356 357 // //WE WOKE UP 358 359 360 // //We are back, restore the owners and recursions 361 // lock_all( locks, count ); 362 // restore_recursion( this->monitors, recursions, count ); 363 // unlock_all( locks, count ); 332 364 } 333 365
Note: See TracChangeset
for help on using the changeset viewer.