2 Sep
2012
2 Sep
'12
2:40 p.m.
Marcus Meissner <meissner(a)suse.de> wrote:
+ if (!pInitializeConditionVariable) { + skip("no condition variable support.\n"); + return; + }
Probably this should be a win_slip().
+ /* fprintf(stderr,"produced %d, c1 %d, c2 %d\n", totalproduced, cnt1, cnt2); */ + + /* The sleeps of the producer or consumer should not go above 10000, otherwise + * the implementation does not sleep correctly. */ + + /* fprintf(stderr,"producer sleep %d, consumer sleep %d\n", condvar_producer_sleepcnt, condvar_consumer_sleepcnt); */
There is trace() for debug output, it's shorter and more convenient IMHO. -- Dmitry.