diff options
author | Patrick Pelissier <patrick.pelissier@gmail.com> | 2021-10-28 19:13:00 +0300 |
---|---|---|
committer | Patrick Pelissier <patrick.pelissier@gmail.com> | 2021-10-28 19:13:00 +0300 |
commit | e10c3586a3a1beb1137fe9c6195528af2dbc8259 (patch) | |
tree | 5afa4787d51d272063742d494cc91cff064f4880 /m-concurrent.h | |
parent | 836d89283233e19a0951163d70f3dc8d0de1572e (diff) |
Rename BITSET & CONCURRENT _clean in _reset to avoid confusing _clean & _clear functions. See #97
Diffstat (limited to 'm-concurrent.h')
-rw-r--r-- | m-concurrent.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/m-concurrent.h b/m-concurrent.h index 7cd0237..c7685ed 100644 --- a/m-concurrent.h +++ b/m-concurrent.h @@ -109,7 +109,7 @@ ,OPLIST(oplist) \ ,M_IF_METHOD(EMPTY_P, oplist)(EMPTY_P(M_C(name,_empty_p)),) \ ,M_IF_METHOD(GET_SIZE, oplist)(GET_SIZE(M_C(name,_size)),) \ - ,M_IF_METHOD(CLEAN, oplist)(CLEAN(M_C(name,_clean)),) \ + ,M_IF_METHOD(CLEAN, oplist)(CLEAN(M_C(name,_reset)),) \ ,M_IF_METHOD(KEY_TYPE, oplist)(KEY_TYPE(M_GET_KEY_TYPE oplist),) \ ,M_IF_METHOD(VALUE_TYPE, oplist)(VALUE_TYPE(M_GET_VALUE_TYPE oplist),) \ ,M_IF_METHOD(KEY_TYPE, oplist)(KEY_OPLIST(M_GET_KEY_OPLIST oplist),) \ @@ -416,13 +416,18 @@ \ M_IF_METHOD(CLEAN, oplist)( \ static inline void \ - M_C(name, _clean)(concurrent_t out) \ + M_C(name, _reset)(concurrent_t out) \ { \ M_C0NCURRENT_CONTRACT(out); \ M_C(name, _write_lock)(out); \ M_CALL_CLEAN(oplist, out->data); \ M_C(name, _write_unlock)(out); \ } \ + static inline void M_ATTR_DEPRECATED \ + M_C(name, _clean)(concurrent_t out) \ + { \ + M_C(name,_reset)(out); \ + } \ ,) \ \ M_IF_METHOD(EMPTY_P, oplist)( \ |