# HG changeset patch # User John W. Eaton # Date 1216400452 14400 # Node ID 7b8aca1cdf0ad71a075aa9823320cd31a985fd1a # Parent db6478d9c6697e56632f225ac325567f028313c5 octave_mutex initialization fixes diff -r db6478d9c669 -r 7b8aca1cdf0a liboctave/ChangeLog --- a/liboctave/ChangeLog Thu Jul 17 14:25:11 2008 -0400 +++ b/liboctave/ChangeLog Fri Jul 18 13:00:52 2008 -0400 @@ -1,3 +1,10 @@ +2008-07-18 John W. Eaton + + * oct-mutex.h (octave_mutex::octave_mutex (int)): Initialize rep + to 0, not count. + * oct-mutex.cc (octave_mutex::octave_mutex (void)): Set rep->count + to 1 instead of incrementing it. + 2008-07-17 Michael Goffioul * dNDArray.cc: Do not include ctor NDArray(Array, diff -r db6478d9c669 -r 7b8aca1cdf0a liboctave/oct-mutex.cc --- a/liboctave/oct-mutex.cc Thu Jul 17 14:25:11 2008 -0400 +++ b/liboctave/oct-mutex.cc Fri Jul 18 13:00:52 2008 -0400 @@ -127,5 +127,5 @@ #else rep = new octave_default_mutex (); #endif - rep->count++; + rep->count = 1; } diff -r db6478d9c669 -r 7b8aca1cdf0a liboctave/oct-mutex.h --- a/liboctave/oct-mutex.h Thu Jul 17 14:25:11 2008 -0400 +++ b/liboctave/oct-mutex.h Fri Jul 18 13:00:52 2008 -0400 @@ -67,7 +67,7 @@ protected: explicit octave_mutex (int /* dummy */) - : count (0) { } + : rep (0) { } protected: union