Changeset b94579a for libcfa/src/concurrency/locks.hfa
- Timestamp:
- Nov 7, 2025, 8:30:59 AM (5 days ago)
- Branches:
- master
- Parents:
- 0048327
- File:
-
- 1 edited
-
libcfa/src/concurrency/locks.hfa (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/locks.hfa
r0048327 rb94579a 11 11 // Created On : Thu Jan 21 19:46:50 2021 12 12 // Last Modified By : Peter A. Buhr 13 // Last Modified On : Fri Oct 31 09:20:22202514 // Update Count : 5913 // Last Modified On : Wed Nov 5 10:27:45 2025 14 // Update Count : 61 15 15 // 16 16 … … 91 91 }; 92 92 93 // PRIVATE94 //thread$ * V( semaphore & sem, bool );95 96 // PUBLIC97 93 void ?{}( semaphore & sem, ssize_t count = 1 ); 98 94 // Return values are used for composition. Calling threads know if a thread is unblocked, which can be useful for … … 103 99 bool try_P( semaphore & sem ); 104 100 static inline bool P( semaphore & sem, semaphore & lock, uintptr_t shadow ) { active_thread()->shadow$ = shadow; return P( sem, lock ); } 105 bool V( semaphore & sem ); 101 thread$ * V( semaphore & sem, const bool doUnpark = true ); 102 static inline bool V( semaphore & sem ) with( sem ) { return V( sem, true ) != 0p; } 106 103 bool V( semaphore & sem, size_t count ); 107 104 static inline uintptr_t front( semaphore & sem ) with( sem ) { // return shadow information for first waiting thread
Note:
See TracChangeset
for help on using the changeset viewer.