diff options
author | Dave Mitchell <davem@fdisolutions.com> | 2002-05-18 23:24:51 +0100 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-05-18 20:46:13 +0000 |
commit | 388759296cc69a19099065bacd8fc616910d1c3d (patch) | |
tree | 9d71504b75860d4b1bb3879a404ad34459f33384 /pod | |
parent | 1108aaa78275c4ea48d2ab4d4de8bdb0d9793fd0 (diff) | |
download | perl-388759296cc69a19099065bacd8fc616910d1c3d.tar.gz |
revised warnings + more tests + docs
Message-ID: <20020518222451.E7275@fdgroup.com>
p4raw-id: //depot/perl@16685
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perldiag.pod | 23 | ||||
-rw-r--r-- | pod/perllexwarn.pod | 2 |
2 files changed, 25 insertions, 0 deletions
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<perlfaq2> for information on I<Mastering Regular Expressions>.) +=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 |