15 Aug
2011
15 Aug
'11
1:43 p.m.
Hi everyone, I've been dipping my toes into boost threads, and I'm running into a strange issue. What I'm trying to do is to run a comparison between thread_ids. I have an object that's "owned" by a thread, and when something calls one of its functions, I'd like to compare the thread_id to the owner's thread id. So I thought that boost::this_thread::get_id would do the trick to figure out what the current running thread's thread id is. For some reason, when I call it, an interrupt is signalled to my main thread. Is boost::this_thread::get_id not the right thing to use here? Thanks in advance, Yi