23 typedef int64_t gu_seqno_t;
long gu_to_cancel(gu_to_t *to, gu_seqno_t seqno)
cancels a TO monitor waiter making it return immediately It is assumed that the caller is currenly ho...
Definition: gu_to.c:316
long gu_to_self_cancel(gu_to_t *to, gu_seqno_t seqno)
Definition: gu_to.c:353
gu_seqno_t gu_to_seqno(gu_to_t *to)
The last sequence number that had been used to access TO object. Note that since no locks are held...
Definition: gu_to.c:311
gu_to_t * gu_to_create(int len, gu_seqno_t seqno)
Creates TO object. TO object can be used to serialize access to application critical section using se...
Definition: gu_to.c:69
long gu_to_release(gu_to_t *to, gu_seqno_t seqno)
Releases TO specified resource. On succesful return unlocks the mutex associated with TO...
Definition: gu_to.c:272
long gu_to_interrupt(gu_to_t *to, gu_seqno_t seqno)
interrupts from TO monitor waiting state. Seqno remains valid in the queue and later seqnos still nee...
Definition: gu_to.c:388
long gu_to_destroy(gu_to_t **to)
Destroys TO object.
Definition: gu_to.c:116
long gu_to_grab(gu_to_t *to, gu_seqno_t seqno)
Grabs TO resource in the specified order. On successful return the mutex associated with specified TO...
Definition: gu_to.c:155