olivier_debels said:
--- In Boost-Users@yahoogroups.com, "William E. Kempf"
wrote: olivier_debels said:
I'm using boost_1_29_0 and need to get the id of the current
thread.
Why?
I have several threads which pop messages from the queue. I want to keep track of what each thread pops (depending on some rules) without adding an extra parameter (threadId) in the pop-function.
I don't follow this.
By this way threads just call the pop-function (they don't know anything about the internal cooking of the queue). They get a message, which fulfills the rules (one of the rules is f.e. that no two threads can handle the same message at the same time).
How does a thread id figure into this? What little of this description I understand gives no need for a thread id. William E. Kempf