This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ignore: why does notify() have to be called from within a synchronized block?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]