Files
2024-08-31 12:07:21 +03:00

10 lines
120 B
Plaintext

int n=0;
pthread_mutex_t m;
void* f(void* p){
phread_mutex_lock(&m);
n++:
pthread_mutex_unlock(&m);
return NULL;
}