Changeset 70f8bcd2 for libcfa/src
- Timestamp:
- Jan 7, 2021, 1:04:54 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 2fc9664b
- Parents:
- 1f58c62
- Location:
- libcfa/src
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/Makefile.am
r1f58c62 r70f8bcd2 94 94 concurrency/clib/cfathread.h \ 95 95 concurrency/invoke.h \ 96 concurrency/future.hfa \ 96 97 concurrency/kernel/fwd.hfa 97 98 -
libcfa/src/bits/locks.hfa
r1f58c62 r70f8bcd2 283 283 void ^?{}(future_t &) {} 284 284 285 void reset(future_t & this) { 286 // needs to be in 0p or 1p 287 __atomic_exchange_n( &this.ptr, 0p, __ATOMIC_SEQ_CST); 288 } 289 285 290 // check if the future is available 286 291 bool available( future_t & this ) { … … 348 353 while( this.ptr != 1p ) Pause(); 349 354 } 355 356 free( &this ); 350 357 return; 351 358 }
Note: See TracChangeset
for help on using the changeset viewer.