This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Regression test for thread safety?
- From: Phil Edwards <phil at jaj dot com>
- To: Dan Kegel <dkegel at ixiacom dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Mon, 15 Jul 2002 15:43:05 -0400
- Subject: Re: Regression test for thread safety?
- References: <3D31E45B.3010100@ixiacom.com>
On Sun, Jul 14, 2002 at 01:51:39PM -0700, Dan Kegel wrote:
> I did some experiments to measure how effective these tests are
> at detecting thread safety problems. First, I tested whether
> compiling with -D_NOTHREADS disabled locking. As expected,
> g++-3.0 -E t.C | grep -i __lock_instance
> showed hits, but adding -D_NOTHREADS showed no hits.
Something you should know if you haven't discovered it since your email:
turning thread support on and off is only supported by the command-line flags
like "-pthread" or "-mthreads" or whatever is appropriate for your platform.
Preprocessor symbol hacks like _NOTHREADS were never documented and aren't
really supported.
Phil
--
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams