Changeset a933dcf4 for src/libcfa
- Timestamp:
- May 2, 2017, 2:42:14 PM (8 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:
- b510ac2
- Parents:
- 5783e94
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/monitor.c
r5783e94 ra933dcf4 16 16 17 17 #include "monitor" 18 19 #include <stdlib> 18 20 19 21 #include "kernel_private.h" … … 351 353 LIB_DEBUG_PRINT_SAFE("Branding\n"); 352 354 assertf( thrd->current_monitors != NULL, "No current monitor to brand condition", thrd->current_monitors ); 353 this->monitors = thrd->current_monitors;354 355 this->monitor_count = thrd->current_monitor_count; 356 357 this->monitors = malloc( this->monitor_count * sizeof( *this->monitors ) ); 358 for( int i = 0; i < this->monitor_count; i++ ) { 359 this->monitors[i] = thrd->current_monitors[i]; 360 } 355 361 } 356 362 }
Note: See TracChangeset
for help on using the changeset viewer.