mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2025-07-01 22:50:47 -07:00
kernel: updated SyncRequest to take boolean thread wait result as a parameter
This commit is contained in:
@ -47,7 +47,14 @@ public:
|
||||
virtual const char *GetTypeName() { return "[BAD KERNEL OBJECT TYPE]"; }
|
||||
virtual const char *GetName() { return "[UNKNOWN KERNEL OBJECT]"; }
|
||||
virtual Kernel::HandleType GetHandleType() const = 0;
|
||||
virtual Result SyncRequest() = 0;
|
||||
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
virtual Result SyncRequest(bool* wait) = 0;
|
||||
|
||||
};
|
||||
|
||||
class ObjectPool : NonCopyable {
|
||||
|
@ -24,8 +24,12 @@ public:
|
||||
Handle lock_thread; ///< Handle to thread that currently has mutex
|
||||
std::vector<Handle> waiting_threads; ///< Threads that are waiting for the mutex
|
||||
|
||||
/// 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;
|
||||
}
|
||||
};
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user