- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/io/types.hfa
rc402739f rd2b5d2d 104 104 //----------------------------------------------------------------------- 105 105 // IO user data 106 struct io_future_t { 107 future_t self; 106 struct __io_user_data_t { 108 107 __s32 result; 108 oneshot sem; 109 109 }; 110 111 static inline {112 bool fulfil( io_future_t & this, __s32 result ) {113 this.result = result;114 return fulfil(this.self);115 }116 117 // Wait for the future to be fulfilled118 bool wait( io_future_t & this ) {119 return wait(this.self);120 }121 }122 110 123 111 //-----------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.