Boost logo

Boost :

From: Mountfort, Geoff (gmountfort_at_[hidden])
Date: 2002-02-19 23:08:52


Peter,

I ended up using CVS from the command line. That brought back a few
memories.

I had to change
        std::printf to printf
        std::clock to clock
and
        add { and } around the second " for(int i = 0; i < m; ++i)"
so I saved it as Gshared_ptr_mt_test.cpp
I compiled with
        cl -GX -MD
And ran it as follows:

Z:\geoff\boost\libs\smart_ptr>Gshared_ptr_mt_test.exe
Using Windows threads: 16 threads, 1048576 iterations, 70.1840 seconds.
no errors detected

Z:\geoff\boost\libs\smart_ptr>Gshared_ptr_mt_test.exe
Using Windows threads: 16 threads, 1048576 iterations, 37.2320 seconds.
no errors detected

Z:\geoff\boost\libs\smart_ptr>Gshared_ptr_mt_test.exe
Using Windows threads: 16 threads, 1048576 iterations, 32.2170 seconds.
no errors detected

Z:\geoff\boost\libs\smart_ptr>Gshared_ptr_mt_test.exe
Using Windows threads: 16 threads, 1048576 iterations, 32.2480 seconds.
no errors detected

Z:\geoff\boost\libs\smart_ptr>Gshared_ptr_mt_test.exe
Using Windows threads: 16 threads, 1048576 iterations, 35.1070 seconds.
no errors detected

Z:\geoff\boost\libs\smart_ptr>Gshared_ptr_mt_test.exe
Using Windows threads: 16 threads, 1048576 iterations, 53.4970 seconds.
no errors detected

Z:\geoff\boost\libs\smart_ptr>Gshared_ptr_mt_test.exe
Using Windows threads: 16 threads, 1048576 iterations, 32.2790 seconds.
no errors detected

Z:\geoff\boost\libs\smart_ptr>Gshared_ptr_mt_test.exe
Using Windows threads: 16 threads, 1048576 iterations, 32.3420 seconds.
no errors detected

Z:\geoff\boost\libs\smart_ptr>Gshared_ptr_mt_test.exe
Using Windows threads: 16 threads, 1048576 iterations, 37.2320 seconds.
no errors detected

Geoff

-----Original Message-----
From: Peter Dimov [mailto:pdimov_at_[hidden]]
Sent: Tuesday, 19 February 2002 9:42 PM
To: boost_at_[hidden]
Subject: Re: [boost] Re: Problems with the shared_ptr thread safety on
g++/mingw

From: "Mountfort, Geoff" <gmountfort_at_[hidden]>
> Peter,
>
> I can try it on Windows2000 (VC6SP3) on a dual PIII, if you tell me what
> "it" is.

"It" is libs/smart_ptr/shared_ptr_mt_test.cpp in the CVS (you need to update
shared_ptr from the CVS, too). Thanks in advance.

Info: http://www.boost.org Send unsubscribe requests to:
<mailto:boost-unsubscribe_at_[hidden]>

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/


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