test/mpool_tests.c

changeset 253
e19825a1430a
parent 250
b7d1317b138e
child 259
2f5dea574a75
equal deleted inserted replaced
252:6342cbbd1922 253:e19825a1430a
121 121
122 UCX_TEST_END 122 UCX_TEST_END
123 ucx_mempool_destroy(pool); 123 ucx_mempool_destroy(pool);
124 } 124 }
125 125
126 UCX_EXTERN void test_setdestr(void* elem) { 126 #ifdef __cplusplus
127 extern "C"
128 #endif
129 void test_setdestr(void* elem) {
127 intptr_t *cb = (intptr_t*) ((intptr_t*) elem)[1]; 130 intptr_t *cb = (intptr_t*) ((intptr_t*) elem)[1];
128 *cb = 42; 131 *cb = 42;
129 } 132 }
130 133
131 UCX_TEST(test_ucx_mempool_set_destr) { 134 UCX_TEST(test_ucx_mempool_set_destr) {

mercurial