Change kernel state's object mutex to a recursive mutex
KernelState::IsKernelModule
This commit is contained in:
@@ -63,13 +63,14 @@ class KernelState {
|
||||
ContentManager* content_manager() const { return content_manager_.get(); }
|
||||
|
||||
ObjectTable* object_table() const { return object_table_; }
|
||||
std::mutex& object_mutex() { return object_mutex_; }
|
||||
std::recursive_mutex& object_mutex() { return object_mutex_; }
|
||||
|
||||
uint32_t process_type() const { return process_type_; }
|
||||
void set_process_type(uint32_t value) { process_type_ = value; }
|
||||
|
||||
void RegisterModule(XModule* module);
|
||||
void UnregisterModule(XModule* module);
|
||||
bool IsKernelModule(const char* name);
|
||||
XModule* GetModule(const char* name);
|
||||
XUserModule* GetExecutableModule();
|
||||
void SetExecutableModule(XUserModule* module);
|
||||
@@ -105,7 +106,7 @@ class KernelState {
|
||||
std::unique_ptr<ContentManager> content_manager_;
|
||||
|
||||
ObjectTable* object_table_;
|
||||
std::mutex object_mutex_;
|
||||
std::recursive_mutex object_mutex_;
|
||||
std::unordered_map<uint32_t, XThread*> threads_by_id_;
|
||||
std::vector<XNotifyListener*> notify_listeners_;
|
||||
bool has_notified_startup_;
|
||||
|
||||
Reference in New Issue
Block a user