Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
f8bb2a90
Commit
f8bb2a90
authored
Sep 14, 2020
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use atomic_int instead of atomic_int32_t for cypclass lock reader count
parent
e42f3a8c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
Cython/Utility/CyObjects.cpp
Cython/Utility/CyObjects.cpp
+1
-2
No files found.
Cython/Utility/CyObjects.cpp
View file @
f8bb2a90
...
...
@@ -13,7 +13,6 @@
#ifdef __cplusplus
#if __cplusplus >= 201103L
#include <cstdint>
#include <atomic>
using
namespace
std
;
#define CyObject_ATOMIC_REFCOUNT_TYPE atomic_int
...
...
@@ -47,7 +46,7 @@
pthread_cond_t
readers_have_left
;
pthread_cond_t
writer_has_left
;
atomic
<
pid_t
>
owner_id
;
atomic_int
32_t
readers_nb
;
atomic_int
readers_nb
;
uint32_t
write_count
;
const
char
*
owner_context
;
public:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment