Changeset c20533ea for libcfa/src/concurrency/locks.hfa
- Timestamp:
- Dec 26, 2020, 6:10:40 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- ac5816d
- Parents:
- 83c7e3c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/locks.hfa
r83c7e3c rc20533ea 3 3 #include <stdbool.h> 4 4 5 #include "bits/algorithm.hfa"6 5 #include "bits/locks.hfa" 7 6 #include "bits/sequence.hfa" … … 12 11 #include "time.hfa" 13 12 #include <sys/time.h> 14 #include "alarm.hfa"15 13 16 14 /////////////////////////////////////////////////////////////////// … … 149 147 void ^?{}( condition_variable(L) & this ); 150 148 151 struct alarm_node_wrap {152 alarm_node_t alarm_node;153 154 condition_variable(L) * cond;155 156 info_thread(L) * i;157 };158 159 void ?{}( alarm_node_wrap(L) & this, Time alarm, Duration period, Alarm_Callback callback );160 void ^?{}( alarm_node_wrap(L) & this );161 162 void alarm_node_callback( alarm_node_wrap(L) & this );163 164 void alarm_node_wrap_cast( alarm_node_t & a );165 166 149 bool notify_one( condition_variable(L) & this ); 167 150 bool notify_all( condition_variable(L) & this );
Note: See TracChangeset
for help on using the changeset viewer.