kernel: updated SyncRequest to take boolean thread wait result as a parameter

This commit is contained in:
bunnei 2014-05-26 22:12:46 -04:00
parent 6e51c56fe4
commit 58a3adcdd2
5 changed files with 33 additions and 10 deletions

View file

@ -36,8 +36,12 @@ public:
inline bool IsWaiting() const { return (status & THREADSTATUS_WAIT) != 0; }
inline bool IsSuspended() const { return (status & THREADSTATUS_SUSPEND) != 0; }
/// Synchronize kernel object
Result SyncRequest() {
/**
* Synchronize kernel object
* @param wait Boolean wait set if current thread should wait as a result of sync operation
* @return Result of operation, 0 on success, otherwise error code
*/
Result SyncRequest(bool* wait) {
return 0;
}