summaryrefslogtreecommitdiff
path: root/libusb/os
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2011-12-09 13:43:46 -0500
committerPeter Stuge <peter@stuge.se>2012-02-08 15:43:52 +0100
commit32bbbd133e24c24d02646c0f7d1963404d4955f2 (patch)
treeb257158df7f100005ab4a725dc82d635bd4f6bcb /libusb/os
parent6cf3285a4e0dfaec0fe53b8eb6a9281e3c5bcb6c (diff)
downloadlibusb-32bbbd133e24c24d02646c0f7d1963404d4955f2.tar.gz
Darwin: Clarify comments on event thread creation and termination
Diffstat (limited to 'libusb/os')
-rw-r--r--libusb/os/darwin_usb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libusb/os/darwin_usb.c b/libusb/os/darwin_usb.c
index f092562..084a838 100644
--- a/libusb/os/darwin_usb.c
+++ b/libusb/os/darwin_usb.c
@@ -358,7 +358,7 @@ static void *event_thread_main (void *arg0) {
usbi_info (ctx, "thread ready to receive events");
- /* signal the main thread */
+ /* signal the main thread that the async runloop has been created. */
pthread_mutex_lock (&libusb_darwin_at_mutex);
libusb_darwin_acfl = runloop;
pthread_cond_signal (&libusb_darwin_at_cond);
@@ -410,7 +410,7 @@ static void darwin_exit (void) {
mach_port_deallocate(mach_task_self(), clock_realtime);
mach_port_deallocate(mach_task_self(), clock_monotonic);
- /* stop the async runloop */
+ /* stop the async runloop and wait for the thread to terminate. */
CFRunLoopStop (libusb_darwin_acfl);
pthread_join (libusb_darwin_at, NULL);
}