10 void *Thread(void *p
) {
11 while ((p
= __atomic_load_n(&mem
, __ATOMIC_ACQUIRE
)) == 0)
17 extern "C" void libfunc() {
19 pthread_create(&t
, 0, Thread
, 0);
21 __atomic_store_n(&mem
, malloc(len
), __ATOMIC_RELEASE
);
24 fprintf(stderr
, "OK\n");