diff options
Diffstat (limited to 'libhurd-cap-server/obj-inhibit.c')
-rw-r--r-- | libhurd-cap-server/obj-inhibit.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/libhurd-cap-server/obj-inhibit.c b/libhurd-cap-server/obj-inhibit.c index 5cee758..4d11e9d 100644 --- a/libhurd-cap-server/obj-inhibit.c +++ b/libhurd-cap-server/obj-inhibit.c @@ -30,24 +30,6 @@ #include "cap-server-intern.h" -/* Return true if there are still outstanding RPCs in this capability - object, and fails if not. This is only valid if - hurd_cap_obj_inhibit is in progress (ie, if cap_obj->state is - _HURD_CAP_STATE_YELLOW). FIXME: We will need this in the RPC - worker thread code, where the last worker will get false as return - value and then has to change the state to RED and broadcast the - condition. */ -static inline int -_hurd_cap_obj_cond_busy (hurd_cap_obj_t obj) -{ - /* We have to remain in the state yellow until there are no pending - RPC threads except maybe the waiter. */ - return obj->pending_rpcs - && (obj->pending_rpcs->thread != obj->cond_waiter - || obj->pending_rpcs->next); -} - - /* Inhibit all RPCs on the capability object CAP_OBJ (which must not be locked). You _must_ follow up with a hurd_cap_obj_resume operation, and hold at least one reference to the object |