Changeset 66298de
- Timestamp:
- Oct 10, 2017, 12:11:40 PM (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:
- 1588ffb6, ca278c1
- Parents:
- e9e4e576
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/monitor.c
re9e4e576 r66298de 409 409 short thread_count = 0; 410 410 thread_desc * threads[ count ]; 411 for(int i = 0; i < count; i++) { 412 threads[i] = 0; 413 } 411 __builtin_memset( threads, 0, sizeof( threads ) ); 414 412 415 413 // Save monitor states … … 535 533 short max = count_max( mask ); 536 534 monitor_desc * mon_storage[max]; 535 __builtin_memset( mon_storage, 0, sizeof( mon_storage ) ); 537 536 short actual_count = aggregate( mon_storage, mask ); 537 538 LIB_DEBUG_PRINT_SAFE("Kernel : waitfor %d (s: %d, m: %d)\n", actual_count, mask.size, (short)max); 538 539 539 540 if(actual_count == 0) return;
Note: See TracChangeset
for help on using the changeset viewer.