Remove check in protected contract:

since there are two mutex now, there are data race when we want to check it.
TODO: Properly separate the contract.
This commit is contained in:
Patrick Pelissier committed 2018-03-17 19:54:59 +01:00
1 parent 5936e25ce4
commit ba72e4ebbf
1 file changed
-2
-2
View File
@@ -91,8 +91,6 @@ typedef enum {
#define BUFFERI_PROTECTED_CONTRACT(buffer, size) do { \
assert (atomic_load(&buffer->number[0]) <= BUFFERI_SIZE(size)); \
assert (buffer->idx_prod <= BUFFERI_SIZE(size)); \
assert (buffer->idx_cons <= BUFFERI_SIZE(size)); \
} while (0)
#define BUFFERI_DEF(arg) BUFFERI_DEF2 arg