]> git.saurik.com Git - wxWidgets.git/commitdiff
Expanded comment in Initialize to include why Initialize is needed on OS X
authorKevin Hock <hockkn@yahoo.com>
Wed, 6 Oct 2004 16:25:33 +0000 (16:25 +0000)
committerKevin Hock <hockkn@yahoo.com>
Wed, 6 Oct 2004 16:25:33 +0000 (16:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/socket.cpp

index eb955def015c0337b2f31ba3c67be99e863c6138..4d98262d3015f5d04cb0403656c8c9b1699c05b5 100644 (file)
@@ -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!"));