Commit 6fdda6f 1 parent 8b41d10 commit 6fdda6f Copy full SHA for 6fdda6f
File tree 5 files changed +5
-7
lines changed
5 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ tpark_handle_t *tparkCreateHandle() {
17
17
return new tpark_handle_t ();
18
18
}
19
19
20
- void tparkWait (tpark_handle_t *handle, const _Bool unlocked) {
20
+ void tparkWait (tpark_handle_t *handle, const bool unlocked) {
21
21
if (!unlocked) {
22
22
// Set the state to 1 to indicate we want to park
23
23
handle->state .store (1 , std::memory_order_release);
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ tpark_handle_t* tparkCreateHandle() {
51
51
return new tpark_handle_t ();
52
52
}
53
53
54
- void tparkWait (tpark_handle_t *handle, const _Bool unlocked) {
54
+ void tparkWait (tpark_handle_t *handle, const bool unlocked) {
55
55
if (!unlocked) {
56
56
// Indicate we want to park
57
57
handle->state .store (1 , std::memory_order_release);
Original file line number Diff line number Diff line change 3
3
4
4
#ifndef __cplusplus
5
5
#include <stdbool.h>
6
- #else
7
- #include <cstdbool>
8
6
#endif
9
7
10
8
#ifdef __cplusplus
@@ -90,7 +88,7 @@ THREAD_PARK_EXPORT void tparkBeginPark(tpark_handle_t *handle);
90
88
* - false => This call sets the bit itself, then blocks.
91
89
* - true => The bit is assumed to be set already; just block if still needed.
92
90
*/
93
- THREAD_PARK_EXPORT void tparkWait (tpark_handle_t * handle , _Bool unlocked );
91
+ THREAD_PARK_EXPORT void tparkWait (tpark_handle_t * handle , bool unlocked );
94
92
95
93
/**
96
94
* @brief Conclude or "undo" the parking state (final phase).
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ tpark_handle_t* tparkCreateHandle() {
19
19
return new tpark_handle_t ();
20
20
}
21
21
22
- void tparkWait (tpark_handle_t *handle, const _Bool unlocked) {
22
+ void tparkWait (tpark_handle_t *handle, const bool unlocked) {
23
23
if (!unlocked) {
24
24
// Indicate we want to park
25
25
handle->state .store (1 , std::memory_order_release);
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ tpark_handle_t *tparkCreateHandle() {
17
17
return new tpark_handle_t ();
18
18
}
19
19
20
- void tparkWait (tpark_handle_t *handle, const _Bool unlocked) {
20
+ void tparkWait (tpark_handle_t *handle, const bool unlocked) {
21
21
if (!unlocked) {
22
22
// Indicate we want to park
23
23
handle->state .store (1 , std::memory_order_release);
You can’t perform that action at this time.
0 commit comments