Initialize pthread key for per-thread cleanup.
| 206 | |
| 207 | // Initialize pthread key for per-thread cleanup. |
| 208 | static void thread_init(void) |
| 209 | { |
| 210 | if (pthread_key_create(&__once_key, thread_free) != 0) { |
| 211 | msg_fatal("%s(%d), %s: pthread_key_create error %s", |
| 212 | __FILE__, __LINE__, __FUNCTION__, last_serror()); |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | // Create one KQUEUE for the specified kqfd. |
| 217 | // Allocate and initialize a KQUEUE object for a kqueue fd. |
nothing calls this directly
no test coverage detected
searching dependent graphs…