|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-02-20 07:11:27
From: "Mountfort, Geoff" <gmountfort_at_[hidden]>
> 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)"
Yes, I've been spoiled by MSVC 7. ;-)
> 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
A bit slow since it's a debug build (-Ox will be faster) but it works.
Thanks.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk