-
Notifications
You must be signed in to change notification settings - Fork 0
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
5 changed files
with
25 additions
and
42 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
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,12 +1,16 @@ | ||
#ifndef TDS_ATOMIC_H | ||
#define TDS_ATOMIC_H | ||
|
||
typedef struct tds_atomic_counter_ tds_atomic_counter; | ||
char tds_has_atomic(void); | ||
|
||
#if HAS_TORCH | ||
typedef struct tds_atomic_counter_ tds_atomic_counter; | ||
tds_atomic_counter* tds_atomic_new(void); | ||
long tds_atomic_inc(tds_atomic_counter *atomic); | ||
long tds_atomic_get(tds_atomic_counter *atomic); | ||
void tds_atomic_set(tds_atomic_counter *atomic, long value); | ||
void tds_atomic_retain(tds_atomic_counter *atomic); | ||
void tds_atomic_free(tds_atomic_counter *atomic); | ||
#endif | ||
|
||
#endif |
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