-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
67 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,19 @@ | ||
|
||
typedef struct bart_lock bart_lock_t; | ||
|
||
void bart_lock(bart_lock_t* lock); | ||
void bart_unlock(bart_lock_t* lock); | ||
void bart_lock_destroy(bart_lock_t* x); | ||
bart_lock_t* bart_lock_create(void); | ||
extern void bart_lock(bart_lock_t* lock); | ||
extern void bart_unlock(bart_lock_t* lock); | ||
extern void bart_lock_destroy(bart_lock_t* x); | ||
extern bart_lock_t* bart_lock_create(void); | ||
|
||
|
||
typedef struct bart_cond bart_cond_t; | ||
|
||
extern void bart_cond_wait(bart_cond_t* cond, bart_lock_t* lock); | ||
extern void bart_cond_notify_all(bart_cond_t* cond); | ||
extern void bart_cond_destroy(bart_cond_t* x); | ||
extern bart_cond_t* bart_cond_create(void); | ||
|
||
|
||
|
||
|