| 109 | */ |
| 110 | |
| 111 | void |
| 112 | my_os_timer_deinit(void) |
| 113 | { |
| 114 | struct kevent kev; |
| 115 | |
| 116 | EV_SET(&kev, 0, EVFILT_USER, 0, NOTE_TRIGGER, 0, 0); |
| 117 | |
| 118 | /* There's not much to do if triggering the event fails. */ |
| 119 | if (kevent(kq_fd, &kev, 1, NULL, 0, NULL) > -1) |
| 120 | pthread_join(thread, NULL); |
| 121 | |
| 122 | close(kq_fd); |
| 123 | } |
| 124 | |
| 125 | |
| 126 | /** |
nothing calls this directly
no test coverage detected