- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm not sure if condition variables are part of C++0x's thread interface, or if condition variables (like in pthreads) are even portable to non-posix systems.
However, condition variables would be useful in tbb::thread for times when there is no useful work to do (until something happens). Are there any objections to adding condition variables to tbb::thread? This is something I would do myself and look at contributing.
AJ
However, condition variables would be useful in tbb::thread for times when there is no useful work to do (until something happens). Are there any objections to adding condition variables to tbb::thread? This is something I would do myself and look at contributing.
AJ
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is a proposal for std::condition_variable in N2800 (POSIX is just an API, without a monopoly on basic concepts).
Making such an implementation should be healthy exercise, but what would be truly exciting is a grand unification with the task-based approach.
Making such an implementation should be healthy exercise, but what would be truly exciting is a grand unification with the task-based approach.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - AJ
I'm not sure if condition variables are part of C++0x's thread interface, or if condition variables (like in pthreads) are even portable to non-posix systems.
However, condition variables would be useful in tbb::thread for times when there is no useful work to do (until something happens). Are there any objections to adding condition variables to tbb::thread? This is something I would do myself and look at contributing.
However, condition variables would be useful in tbb::thread for times when there is no useful work to do (until something happens). Are there any objections to adding condition variables to tbb::thread? This is something I would do myself and look at contributing.
Since there is a tbb_thread, there must be a condition variable too...
How are you going to implement condition variable under Windows prior to Vista?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am only familiar with posix systems, so I wouldn't know how to implement condition variables on a non-posix system. Boost thread appears to have condition variables, so there may be some insight there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - AJ
I am only familiar with posix systems, so I wouldn't know how to implement condition variables on a non-posix system. Boost thread appears to have condition variables, so there may be some insight there.
I've already submitted my eventcount proposal, so now portable low-overhead condition variable can be implemented as simple as:
http://software.intel.com/en-us/forums/showpost.php?p=72257
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page