Changeset 1dec8f3 for libcfa/src/concurrency/mutex.cfa
- Timestamp:
- Sep 22, 2025, 2:33:42 PM (5 months ago)
- Branches:
- master
- Children:
- bb5b866
- Parents:
- 7ca6bf1 (diff), 295ed2d1 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
libcfa/src/concurrency/mutex.cfa (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/mutex.cfa
r7ca6bf1 r1dec8f3 12 12 // Created On : Fri May 25 01:37:11 2018 13 13 // Last Modified By : Peter A. Buhr 14 // Last Modified On : Sun Feb 19 17:01:36 202315 // Update Count : 314 // Last Modified On : Thu Aug 21 22:35:44 2025 15 // Update Count : 4 16 16 // 17 17 … … 131 131 //----------------------------------------------------------------------------- 132 132 // Conditions 133 void ?{}(cond ition_variable& this) {133 void ?{}(cond_lock & this) { 134 134 this.blocked_threads{}; 135 135 } 136 136 137 void ^?{}(cond ition_variable& this) {137 void ^?{}(cond_lock & this) { 138 138 // default 139 139 } 140 140 141 void notify_one(cond ition_variable& this) with(this) {141 void notify_one(cond_lock & this) with(this) { 142 142 lock( lock __cfaabi_dbg_ctx2 ); 143 143 unpark( … … 147 147 } 148 148 149 void notify_all(cond ition_variable& this) with(this) {149 void notify_all(cond_lock & this) with(this) { 150 150 lock( lock __cfaabi_dbg_ctx2 ); 151 151 while(this.blocked_threads) { … … 157 157 } 158 158 159 void wait(cond ition_variable& this) {159 void wait(cond_lock & this) { 160 160 lock( this.lock __cfaabi_dbg_ctx2 ); 161 161 append( this.blocked_threads, active_thread() ); … … 165 165 166 166 forall(L & | is_lock(L)) 167 void wait(cond ition_variable& this, L & l) {167 void wait(cond_lock & this, L & l) { 168 168 lock( this.lock __cfaabi_dbg_ctx2 ); 169 169 append( this.blocked_threads, active_thread() );
Note:
See TracChangeset
for help on using the changeset viewer.