Boost logo

Boost :

Subject: Re: [boost] [thread] #2739 shouldn't at_thread_exit work on the main thread?
From: Larry Evans (cppljevans_at_[hidden])
Date: 2009-05-31 07:52:35


On 05/31/09 04:01, vicente.botet wrote:
[snip]
>
> OK, I will do like you propose next time. The thread.cpp file corresponds to ./thread/src/pthread/thread.cpp.
>

Here's what I did.

1) downloaded:

https://svn.boost.org/trac/boost/export/53346/trunk/libs/thread/src/pthread/thread.cpp

to my boost-trunk directory:

-*- mode: compilation; default-directory:
"~/prog_dev/boost-svn/ro/boost-trunk/" -*-
Compilation started at Sun May 31 06:44:20

svn info
Path: .
URL: http://svn.boost.org/svn/boost/trunk
Repository Root: http://svn.boost.org/svn/boost
Repository UUID: b8fc166d-592f-0410-95f2-cb63ce0dd405
Revision: 53106
Node Kind: directory
Schedule: normal
Last Changed Author: steven_watanabe
Last Changed Rev: 53105
Last Changed Date: 2009-05-18 22:00:53 -0500 (Mon, 18 May 2009)

Compilation finished at Sun May 31 06:44:20

so that thread.cpp, revision 53346, overwrote whatever was in the trunk
(which, as shown above, was revision 53106).

Then I applied the patch. Then created directory:

/boost-trunk/libs/thread/test_patches:

to which I copied your test_ticket_2739.cpp. Then cp'ed the
libs/thread/test/Jamfile.v2 to the test_patches and changed
the tests-suite target to:

     test-suite "threads"
         : [ thread-run test_ticket_2739.cpp ]
     ;

Then ran with bjam:

-*- mode: compilation; default-directory:
"~/prog_dev/boost-svn/ro/boost-trunk/libs/thread/test_patches/" -*-
Compilation started at Sun May 31 06:50:58

bjam
sh: icpc: not found
docutils-dir=
tools-dir= /usr/bin/rst2html.py
...patience...
...found 1062 targets...
...updating 8 targets...
gcc.compile.c++
../../../bin.v2/libs/thread/test_patches/test_ticket_2739.test/gcc-4.2/debug/threading-multi/test_ticket_2739.o
gcc.link
../../../bin.v2/libs/thread/test_patches/test_ticket_2739.test/gcc-4.2/debug/threading-multi/test_ticket_2739
testing.capture-output
../../../bin.v2/libs/thread/test_patches/test_ticket_2739.test/gcc-4.2/debug/threading-multi/test_ticket_2739.run
**passed**
../../../bin.v2/libs/thread/test_patches/test_ticket_2739.test/gcc-4.2/debug/threading-multi/test_ticket_2739.test
gcc.compile.c++
../../../bin.v2/libs/thread/test_patches/test_ticket_2739_lib.test/gcc-4.2/debug/threading-multi/test_ticket_2739.o
gcc.link
../../../bin.v2/libs/thread/test_patches/test_ticket_2739_lib.test/gcc-4.2/debug/threading-multi/test_ticket_2739_lib
testing.capture-output
../../../bin.v2/libs/thread/test_patches/test_ticket_2739_lib.test/gcc-4.2/debug/threading-multi/test_ticket_2739_lib.run
**passed**
../../../bin.v2/libs/thread/test_patches/test_ticket_2739_lib.test/gcc-4.2/debug/threading-multi/test_ticket_2739_lib.test
...updated 8 targets...

Compilation finished at Sun May 31 06:51:07


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk