Commit f8bb2a90 authored by Xavier Thompson's avatar Xavier Thompson

Use atomic_int instead of atomic_int32_t for cypclass lock reader count

parent e42f3a8c
......@@ -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_int32_t readers_nb;
atomic_int readers_nb;
uint32_t write_count;
const char *owner_context;
public:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment