- File:
-
- 1 edited
-
libcfa/src/concurrency/locks.hfa (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/locks.hfa
r8a97248 r0cee082 511 511 // flag showing if lock is held 512 512 volatile bool held; 513 514 #ifdef __CFA_DEBUG__ 515 // for deadlock detection 516 struct thread$ * owner; 517 #endif 513 518 }; 514 519 … … 521 526 static inline void ?=?( spin_queue_lock & this, spin_queue_lock this2 ) = void; 522 527 523 // if this is called recursively IT WILL DEADLOCK! 528 // if this is called recursively IT WILL DEADLOCK!!!!! 524 529 static inline void lock(spin_queue_lock & this) with(this) { 525 530 mcs_spin_node node; … … 640 645 //----------------------------------------------------------------------------- 641 646 // is_blocking_lock 642 forall( L & | sized(L) ) 643 trait is_blocking_lock { 647 trait is_blocking_lock(L & | sized(L)) { 644 648 // For synchronization locks to use when acquiring 645 649 void on_notify( L &, struct thread$ * );
Note:
See TracChangeset
for help on using the changeset viewer.