[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:
2020-07-26 18:03:30 -07:00
parent d3e9d92466
commit 58bc5acb1e
6 changed files with 48 additions and 1 deletions

View File

@@ -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; }