aboutsummaryrefslogtreecommitdiffstats
path: root/include/litmus.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/litmus.h')
-rw-r--r--include/litmus.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/litmus.h b/include/litmus.h
index b4affb1..dd9b95f 100644
--- a/include/litmus.h
+++ b/include/litmus.h
@@ -235,6 +235,12 @@ int litmus_open_lock(obj_type_t protocol, int lock_id, const char* name_space,
235 */ 235 */
236int litmus_lock(int od); 236int litmus_lock(int od);
237/** 237/**
238 * Obtain lock with specified worst-case critical section duration
239 * @param od Object descriptor obtained by litmus_open_lock()
240 * @return 0 iff the lock was opened successfully
241 */
242int litmus_lock_cs(int od, lt_t cs_len);
243/**
238 * Access protected resource (wait if in forbidden zone) 244 * Access protected resource (wait if in forbidden zone)
239 * @param od Object descriptor obtained by litmus_open_lock() 245 * @param od Object descriptor obtained by litmus_open_lock()
240 * @return 0 iff the resource access was granted successfully 246 * @return 0 iff the resource access was granted successfully