Kernel: Made SyncRequest not pure virtual, with a default implementation of error (as this is not required for all kernel objects)

This commit is contained in:
bunnei 2014-06-05 23:13:28 -04:00
parent f5c7c15434
commit aae9fcf4a4
3 changed files with 4 additions and 23 deletions

View file

@ -53,7 +53,10 @@ public:
* @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
*/
virtual Result SyncRequest(bool* wait) = 0;
virtual Result SyncRequest(bool* wait) {
ERROR_LOG(KERNEL, "(UNIMPLEMENTED)");
return -1;
}
/**
* Wait for kernel object to synchronize
@ -61,7 +64,6 @@ public:
* @return Result of operation, 0 on success, otherwise error code
*/
virtual Result WaitSynchronization(bool* wait) = 0;
};
class ObjectPool : NonCopyable {