- File:
-
- 1 edited
-
libcfa/src/concurrency/locks.hfa (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/locks.hfa
rc131a02 rdff1fd1 36 36 uintptr_t info; 37 37 L * lock; 38 bool listed; // true if info_thread is on queue, false otherwise;38 bool signalled; // true when signalled and false when timeout wakes thread 39 39 }; 40 40 … … 46 46 info_thread(L) *& Back( info_thread(L) * this ); 47 47 info_thread(L) *& Next( info_thread(L) * this ); 48 bool listed( info_thread(L) * this );49 48 } 50 49 … … 52 51 //// Blocking Locks 53 52 /////////////////////////////////////////////////////////////////// 54 55 // struct lock_thread {56 // struct $thread * t;57 // lock_thread * next;58 // };59 60 // void ?{}( lock_thread & this, struct $thread * thd );61 // void ^?{}( lock_thread & this );62 63 // lock_thread *& get_next( lock_thread & );64 53 65 54 struct blocking_lock { … … 183 172 int counter( condition_variable(L) & this ); 184 173 185 // TODO: look into changing timout routines to return bool showing if signalled or woken by kernel186 174 void wait( condition_variable(L) & this ); 187 175 void wait( condition_variable(L) & this, uintptr_t info ); 188 voidwait( condition_variable(L) & this, Duration duration );189 voidwait( condition_variable(L) & this, uintptr_t info, Duration duration );190 voidwait( condition_variable(L) & this, Time time );191 voidwait( condition_variable(L) & this, uintptr_t info, Time time );176 bool wait( condition_variable(L) & this, Duration duration ); 177 bool wait( condition_variable(L) & this, uintptr_t info, Duration duration ); 178 bool wait( condition_variable(L) & this, Time time ); 179 bool wait( condition_variable(L) & this, uintptr_t info, Time time ); 192 180 193 181 void wait( condition_variable(L) & this, L & l ); 194 182 void wait( condition_variable(L) & this, L & l, uintptr_t info ); 195 voidwait( condition_variable(L) & this, L & l, Duration duration );196 voidwait( condition_variable(L) & this, L & l, uintptr_t info, Duration duration );197 voidwait( condition_variable(L) & this, L & l, Time time );198 voidwait( condition_variable(L) & this, L & l, uintptr_t info, Time time );183 bool wait( condition_variable(L) & this, L & l, Duration duration ); 184 bool wait( condition_variable(L) & this, L & l, uintptr_t info, Duration duration ); 185 bool wait( condition_variable(L) & this, L & l, Time time ); 186 bool wait( condition_variable(L) & this, L & l, uintptr_t info, Time time ); 199 187 }
Note:
See TracChangeset
for help on using the changeset viewer.