X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d775fa82354a1f8d5db87ad1d71ab00ef7d9123c..301e257baf3a227beb587749134bbc40786f761f:/src/common/socket.cpp diff --git a/src/common/socket.cpp b/src/common/socket.cpp index eb955def01..4d98262d30 100644 --- a/src/common/socket.cpp +++ b/src/common/socket.cpp @@ -132,6 +132,11 @@ bool wxSocketBase::Initialize() BTW, the main thread must not be stopped using sleep or block on a semaphore (a bad idea in any case) or socket operations will time out. + + On the Mac side, Initialize() stores a pointer to the CFRunLoop for + the main thread. Because secondary threads do not have run loops, + adding event notifications to the "Current" loop would have no + effect at all, events would never fire. */ wxASSERT_MSG( wxIsMainThread(), wxT("Call wxSocketBase::Initialize() from the main thread first!"));