3 ms·
What about simply making pthread_once take a void *opaque parameter that is passed in to the function? You could use this to manually construct a closure.
by rcme 3y ago
What about simply making pthread_once take a void *opaque parameter that is passed in to the function? You could use this to manually construct a closure.