> On Nov. 15, 2012, 6:30 p.m., Chug Rolke wrote:
> > Both instances of code kick off a function call into 
> > boost::shared_ptr<qpid::sys::ThreadPrivate>. Before the patch the function 
> > is ::operator <type>::* and after the patch the function is ::get, 
> > unsurprisingly. The results are then processed slightly differently before 
> > returning the result. Gcc produces a function call and post-call processing 
> > nearly identical to windows. So why do gcc versions work? Probably 
> > something to do with boost and ThreadPrivate on the two platforms.

Thanks to chuck for looking into this further. I still don't understand why it 
works with gcc/pthreads but not with VC/boost::threads however if it works now 
it'll remain a mystery.

I do suggest that putting a comment to say that we don't understand why this 
fixes the problem might be sensible though just in case someone is minded to 
change it back as it shouldn't change the behaviour! 


- Andrew


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/8072/#review13479
-----------------------------------------------------------


On Nov. 15, 2012, 3:05 a.m., Steve Huston wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/8072/
> -----------------------------------------------------------
> 
> (Updated Nov. 15, 2012, 3:05 a.m.)
> 
> 
> Review request for qpid, Andrew Stitcher, Chug Rolke, and Cliff Jansen.
> 
> 
> Description
> -------
> 
> The assert in QPID-4424 was a check for a Thread object not set. This change 
> resolves that problem, but could it really be that easy? Why doesn't the 
> Linux code fail the same way?
> 
> 
> This addresses bug QPID-4424.
>     https://issues.apache.org/jira/browse/QPID-4424
> 
> 
> Diffs
> -----
> 
>   
> http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/src/qpid/sys/windows/Thread.cpp
>  1409628 
> 
> Diff: https://reviews.apache.org/r/8072/diff/
> 
> 
> Testing
> -------
> 
> Original reproducing test case in QPID-4424 (run broker quiet for 15 
> seconds). I set a breakpoint at the assert and stepped across it without 
> error.
> 
> 
> Thanks,
> 
> Steve Huston
> 
>

Reply via email to