Changeset db7a3ad
- Timestamp:
- Jun 9, 2022, 2:25:56 PM (2 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
- Children:
- aeb20a4
- Parents:
- 6e2b04e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/locks.hfa
r6e2b04e rdb7a3ad 107 107 struct mcs_spin_node { 108 108 mcs_spin_node * volatile next; 109 bool locked:1;109 volatile bool locked; 110 110 }; 111 111 … … 456 456 457 457 // flag showing if lock is held 458 bool held:1;458 volatile bool held; 459 459 460 460 #ifdef __CFA_DEBUG__ … … 481 481 while(held) Pause(); 482 482 held = true; 483 // printf("locked\n"); 483 484 unlock( lock, node ); 484 485 #ifdef __CFA_DEBUG__ … … 488 489 489 490 static inline void unlock(spin_queue_lock & this) with(this) { 491 // printf("unlocked\n"); 490 492 #ifdef __CFA_DEBUG__ 491 493 owner = 0p; … … 511 513 512 514 // flag showing if lock is held 513 bool held:1;515 volatile bool held; 514 516 515 517 #ifdef __CFA_DEBUG__ … … 565 567 566 568 // flag showing if lock is held 567 bool held:1;569 volatile bool held; 568 570 569 571 #ifdef __CFA_DEBUG__
Note: See TracChangeset
for help on using the changeset viewer.