mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 08:24:32 -08:00
[kernel] Add object_signal system call
Add a system call to assert signals on a given object, only within the range of user-settable signals. Also made object_wait return immediately if any of the given signals are already set.
This commit is contained in:
@@ -60,6 +60,9 @@ public:
|
||||
/// \arg s The set of signals to check
|
||||
inline bool check_signal(j6_signal_t s) const { return (m_signals & s) == s; }
|
||||
|
||||
/// Get the current object signal state
|
||||
inline j6_signal_t signals() const { return m_signals; }
|
||||
|
||||
/// Increment the handle refcount
|
||||
inline void handle_retain() { ++m_handle_count; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user