From 388759296cc69a19099065bacd8fc616910d1c3d Mon Sep 17 00:00:00 2001 From: Dave Mitchell Date: Sat, 18 May 2002 23:24:51 +0100 Subject: revised warnings + more tests + docs Message-ID: <20020518222451.E7275@fdgroup.com> p4raw-id: //depot/perl@16685 --- pod/perldiag.pod | 23 +++++++++++++++++++++++ pod/perllexwarn.pod | 2 ++ 2 files changed, 25 insertions(+) (limited to 'pod') diff --git a/pod/perldiag.pod b/pod/perldiag.pod index faf360d745..2d34e0b530 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -1169,6 +1169,29 @@ in the regular expression engine; or rewriting the regular expression so that it is simpler or backtracks less. (See L for information on I.) +=item cond_broadcast() called on unlocked variable + +(W threads) Within a thread-enabled program, you tried to call +cond_broadcast() on a variable which wasn't locked. The cond_broadcast() +function is used to wake up another thread that is waiting in a +cond_wait(). To ensure that the signal isn't sent before the other thread +has a chance to enter the wait, it is usual for the signaling thread to +first wait for a lock on variable. This lock attempt will only succeed +after the other thread has entered cond_wait() and thus relinquished the +lock. + + +=item cond_signal() called on unlocked variable + +(W threads) Within a thread-enabled program, you tried to call +cond_signal() on a variable which wasn't locked. The cond_signal() +function is used to wake up another thread that is waiting in a +cond_wait(). To ensure that the signal isn't sent before the other thread +has a chance to enter the wait, it is usual for the signaling thread to +first wait for a lock on variable. This lock attempt will only succeed +after the other thread has entered cond_wait() and thus relinquished the +lock. + =item connect() on closed socket %s (W closed) You tried to do a connect on a closed socket. Did you forget diff --git a/pod/perllexwarn.pod b/pod/perllexwarn.pod index 0edb2bc1d6..7b3ce3ce20 100644 --- a/pod/perllexwarn.pod +++ b/pod/perllexwarn.pod @@ -285,6 +285,8 @@ The current hierarchy is: | +- taint | + +- threads + | +- uninitialized | +- unpack -- cgit v1.2.1