... initialization in Win32 pthread_once can be simulated by using something similar to the the following: struct OnceInfo { DWORD counter; bool done; }; ...
tneumann@...
Aug 1, 2001 7:16 am
15441
... Yes, seems to be a problem with my ftp client. Sorry for the noise. Thomas -- Dipl.-Ing. Thomas Witt Institut fuer Verkehrswesen, Eisenbahnbau und...
Thomas Witt
witt@...
Aug 1, 2001 8:14 am
15442
... without initial check of info.done you could end up calling foo() multiple times. that is incorrect. also, Interlocked stuff does not formally provide ...
Alexander Terekhov
terekhov@...
Aug 1, 2001 9:53 am
15443
The latest version of the split config is now available in the files section: http://groups.yahoo.com/group/boost/files/config/ I'd like to ask for a review of...
John Maddock
John_Maddock@...
Aug 1, 2001 11:29 am
15444
Please note that not everyone has sockets, nor use it as the basis of their IP connections. Everyone here has access to TCP/IP (if they didn't, they couldn't...
Daryle Walker
darylew@...
Aug 1, 2001 12:34 pm
15445
It is true that some operating systems, mainly classic MAC OS does not provide sockets. But on these systems the socket interface can be emulated (I saw one...
Joseph Berrios
jsberrios@...
Aug 1, 2001 12:54 pm
15446
... the ... of ... other ... requirements ... always ... other ... is ... some ... systems ... the ... list, ... changed, ... outside ... a ... library ... ...
Joseph Berrios
jsberrios@...
Aug 1, 2001 1:01 pm
15447
From: "Daryle Walker" <darylew@...> ... the ... I gathered as much. That can be fine for concept names like Koenig lookup (and only major concepts at...
Ed Brey
edbrey@...
Aug 1, 2001 1:06 pm
15448
... I cannot ... I never said it was on the stack. The above obviously wasn't meant to convey that, since it would be impossible for the thread to terminate...
williamkempf@...
Aug 1, 2001 1:49 pm
15449
... initialization ... access ... this, ... initialization ... and ... interface ... A singleton is not the same thing as what we're talking about here (though...
williamkempf@...
Aug 1, 2001 2:00 pm
15450
... to ... I know there's ways to simulate the functionality. Other wise the question wouldn't have been posed for whether or not Boost.Threads should have...
williamkempf@...
Aug 1, 2001 2:11 pm
15451
... ignoring all synchronization problems you could also do it via "static thread& thread::current()" which is much more clear, IMHO: class foo { public: foo()...
Alexander Terekhov
terekhov@...
Aug 1, 2001 2:23 pm
15452
... to ... I never thought of using a named mutex approach. Not overly efficient, but a very nice idea non-the-less. I've been thinking too much about...
williamkempf@...
Aug 1, 2001 2:31 pm
15453
... I've not had a chance to look at the config stuff yet, but I'll try to later. I have a comment on the following, though. ... regex ... BOOST_HAS_THREADS...
williamkempf@...
Aug 1, 2001 2:36 pm
15454
... yeah.. the problem of (need for) thread-safe lazy-initialization (which works perfectly with static locals in single threaded C/C++ programs) has nothing...
Alexander Terekhov
terekhov@...
Aug 1, 2001 2:37 pm
15455
From an off line discussion between myself and Dave Abrahams. ... From: "William Kempf" <williamkempf@...> ... library for ... I think so. David T, do...
williamkempf@...
Aug 1, 2001 2:45 pm
15456
... the ... idea. ... owner; } ... No, you can't do it this way, because thrd1 may terminate long before the call to current_thread_is_owner() in thrd2 is ever...
williamkempf@...
Aug 1, 2001 2:48 pm
15457
... Bill, the owner thread is supposed to be joinable (not detached); the thread object will exist after thrd1 termination (and even after owner.join() <- done...
Alexander Terekhov
terekhov@...
Aug 1, 2001 3:54 pm
15458
... Me :-) ... I don't because that would be a category error -- unless you are thinking of bad poetry (which, given the citation below, you clearly aren't) or...
Kevlin Henney
kevlin@...
Aug 1, 2001 4:01 pm
15459
Author: bdawes (bdawes@...) at unix,mime Date: 01/08/01 01:22 [snip] ... Thanks. I was intending to. But, as we were discussing requirements are though...
Iain.Hanson@...
Aug 1, 2001 4:21 pm
15460
Hi, What does MacOS use in place of sockets? Is there any publicly available documentation for the Mac api? Do we need to support MacOS prior to version x with...
Iain.Hanson@...
Aug 1, 2001 4:30 pm
15461
... before ... This ... exists. ... Fistly, Boost.Threads are not POSIX threads. As you've seen, they are detached in the POSIX implementation, and must be...
williamkempf@...
Aug 1, 2001 4:50 pm
15462
Apple's <X networking interface is called OpenTransport and it is based on XTI (Streams). There is a freely available socket interface for <X Macintosh called...
Jon Kalb
jonkalb@...
Aug 1, 2001 6:13 pm
15463
... if you really do it that way then your threads well become detached (in posix terminology). that would mean that you could never call pthread_join or...
Alexander Terekhov
terekhov@...
Aug 1, 2001 7:37 pm
15464
I tested the new config headers under gcc on Mac OS X, and I also proofread them, with special attention to the Macintosh-related headers. ... There's a...
Darin Adler
darin@...
Aug 1, 2001 8:44 pm
15465
After further testing, I've discovered that this: // POSIX defines _POSIX_THREADS > 0 for pthread support: # if defined(_POSIX_THREADS) && (_POSIX_THREADS...
Darin Adler
darin@...
Aug 1, 2001 9:06 pm
15466
... Which is likely a non-issue, and frankly what we want. ... Since users have no access to the ID directly they can't call pthread_detach() or...
williamkempf@...
Aug 1, 2001 9:26 pm
15467
... Brief history: the original problem was that std::cout << 1 << std::endl; didn't work: you'd have to write std::operator<<(std::operator<<...
John Max Skaller
skaller@...
Aug 1, 2001 9:54 pm
15468
... how about "ReleaseMutex(mutex)". also, named mutex need to be associated with &once (once control variable). that is why i was using macro/function...
Alexander Terekhov
terekhov@...
Aug 1, 2001 10:13 pm
15469
... Thanks for the information. XTI is documented in Steven's Unix "Networking Programming" book mentioned in the requirements document. Skim reading what he...