This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
ignore: why does notify() have to be called from within a synchronized block?
- From: Adam Megacz <gcj at lists dot megacz dot com>
- To: Adam Megacz <gcj at lists dot megacz dot com>
- Cc: java at gcc dot gnu dot org
- Date: 15 Oct 2002 15:56:16 -0700
- Subject: ignore: why does notify() have to be called from within a synchronized block?
- Organization: Myself
- References: <86wuojpb2l.fsf@nowhere.com>
Nevermind, I figured it out.
- a
Adam Megacz <gcj@lists.megacz.com> writes:
> I understand why wait() requires this, but what's wrong with calling
> notify() when you're not holding the monitor?
>
> - a
>
> --
> "Through your rags I see your vanity" -- Socrates
>
--
"Through your rags I see your vanity" -- Socrates