Browse Source

kernel: added WaitSynchronization method to Kernel::Object

pull/15/merge
bunnei 12 years ago
parent
commit
a432dc8f39
  1. 7
      src/core/hle/kernel/kernel.h
  2. 11
      src/core/hle/kernel/mutex.cpp
  3. 11
      src/core/hle/kernel/thread.cpp
  4. 10
      src/core/hle/service/service.h

7
src/core/hle/kernel/kernel.h

@ -55,6 +55,13 @@ public:
*/
virtual Result SyncRequest(bool* wait) = 0;
/**
* Wait for kernel object to synchronize
* @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 WaitSynchronization(bool* wait) = 0;
};
class ObjectPool : NonCopyable {

11
src/core/hle/kernel/mutex.cpp

@ -30,6 +30,17 @@ public:
* @return Result of operation, 0 on success, otherwise error code
*/
Result SyncRequest(bool* wait) {
// TODO(bunnei): ImplementMe
return 0;
}
/**
* Wait for kernel object to synchronize
* @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 WaitSynchronization(bool* wait) {
// TODO(bunnei): ImplementMe
return 0;
}
};

11
src/core/hle/kernel/thread.cpp

@ -42,6 +42,17 @@ public:
* @return Result of operation, 0 on success, otherwise error code
*/
Result SyncRequest(bool* wait) {
// TODO(bunnei): ImplementMe
return 0;
}
/**
* Wait for kernel object to synchronize
* @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 WaitSynchronization(bool* wait) {
// TODO(bunnei): ImplementMe
return 0;
}

10
src/core/hle/service/service.h

@ -100,6 +100,16 @@ public:
return 0; // TODO: Implement return from actual function
}
/**
* Wait for kernel object to synchronize
* @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 WaitSynchronization(bool* wait) {
// TODO(bunnei): ImplementMe
return 0;
}
protected:
/**

Loading…
Cancel
Save