From a71ca6bc1fcea4b4b6ccf0a51d94eb4b79cd764f Mon Sep 17 00:00:00 2001 From: jsorg71 Date: Mon, 12 Jan 2009 06:43:58 +0000 Subject: only the main thread forks --- sesman/lock.h | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) (limited to 'sesman/lock.h') diff --git a/sesman/lock.h b/sesman/lock.h index 4d2a8655..5ea5e7f4 100644 --- a/sesman/lock.h +++ b/sesman/lock.h @@ -78,5 +78,36 @@ lock_socket_acquire(void); void DEFAULT_CC lock_socket_release(void); -#endif +/** + * + * @brief request the main sync lock + * + */ +void APP_CC +lock_sync_acquire(void); +/** + * + * @brief releases the main sync lock + * + */ +void APP_CC +lock_sync_release(void); + +/** + * + * @brief request the sync sem lock + * + */ +void APP_CC +lock_sync_sem_acquire(void); + +/** + * + * @brief releases the sync sem lock + * + */ +void APP_CC +lock_sync_sem_release(void); + +#endif -- cgit v1.2.1