Changeset 92e7631 for libcfa/src/bits
- Timestamp:
- Mar 27, 2020, 7:28:06 PM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- bb2e05e
- Parents:
- f0ce5f4
- Location:
- libcfa/src/bits
- Files:
-
- 2 edited
-
containers.hfa (modified) (1 diff)
-
locks.hfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/bits/containers.hfa
rf0ce5f4 r92e7631 274 274 return this.head != 0; 275 275 } 276 277 void move_to_front( __dllist(T) & src, __dllist(T) & dst, T & node ) { 278 remove (src, node); 279 push_front(dst, node); 280 } 276 281 } 277 282 #undef next -
libcfa/src/bits/locks.hfa
rf0ce5f4 r92e7631 139 139 } 140 140 141 static inline void post(__bin_sem_t & this) with( this ) { 142 verify(__cfaabi_dbg_in_kernel()); 143 141 static inline bool post(__bin_sem_t & this) with( this ) { 144 142 pthread_mutex_lock(&lock); 145 143 bool needs_signal = !signaled; … … 147 145 pthread_mutex_unlock(&lock); 148 146 149 if (needs_signal) 150 pthread_cond_signal(&cond); 147 if (needs_signal) pthread_cond_signal(&cond); 148 149 return needs_signal; 151 150 } 152 151 #endif
Note:
See TracChangeset
for help on using the changeset viewer.