- File:
-
- 1 edited
-
libcfa/src/concurrency/locks.hfa (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/locks.hfa
rdff1fd1 rc131a02 36 36 uintptr_t info; 37 37 L * lock; 38 bool signalled; // true when signalled and false when timeout wakes thread38 bool listed; // true if info_thread is on queue, false otherwise; 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 ); 48 49 } 49 50 … … 51 52 //// Blocking Locks 52 53 /////////////////////////////////////////////////////////////////// 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 & ); 53 64 54 65 struct blocking_lock { … … 172 183 int counter( condition_variable(L) & this ); 173 184 185 // TODO: look into changing timout routines to return bool showing if signalled or woken by kernel 174 186 void wait( condition_variable(L) & this ); 175 187 void wait( condition_variable(L) & this, uintptr_t info ); 176 boolwait( condition_variable(L) & this, Duration duration );177 boolwait( condition_variable(L) & this, uintptr_t info, Duration duration );178 boolwait( condition_variable(L) & this, Time time );179 boolwait( condition_variable(L) & this, uintptr_t info, Time time );188 void wait( condition_variable(L) & this, Duration duration ); 189 void wait( condition_variable(L) & this, uintptr_t info, Duration duration ); 190 void wait( condition_variable(L) & this, Time time ); 191 void wait( condition_variable(L) & this, uintptr_t info, Time time ); 180 192 181 193 void wait( condition_variable(L) & this, L & l ); 182 194 void wait( condition_variable(L) & this, L & l, uintptr_t info ); 183 boolwait( condition_variable(L) & this, L & l, Duration duration );184 boolwait( condition_variable(L) & this, L & l, uintptr_t info, Duration duration );185 boolwait( condition_variable(L) & this, L & l, Time time );186 boolwait( condition_variable(L) & this, L & l, uintptr_t info, Time time );195 void wait( condition_variable(L) & this, L & l, Duration duration ); 196 void wait( condition_variable(L) & this, L & l, uintptr_t info, Duration duration ); 197 void wait( condition_variable(L) & this, L & l, Time time ); 198 void wait( condition_variable(L) & this, L & l, uintptr_t info, Time time ); 187 199 }
Note:
See TracChangeset
for help on using the changeset viewer.