Article View: borland.public.jbuilder.java.language
Article #17449What this synchronized means ?
From: Lionel Tinguely
Date: Mon, 09 Nov 1998 00:00
Date: Mon, 09 Nov 1998 00:00
26 lines
1105 bytes
1105 bytes
Hello all,
Here is a piece of code I founded in the Chess example of JBuilder.
This piece of code is part of the moussePressed method in the
ChessBoard class.
As it's the first time I see the synchronized key word used this way,
I not know what it means ?
Do you ?
pulic void moussePressed.....
{
synchronized (this)
{
xoffset = mousex ;
yoffset = mousey;
xOldMouse = xoffset;
yOldMouse = yoffset;
......
....
}
}
Technical Details
Message-ID:
<364e18c6.284923267@167.149.174.144>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,d9a076a72c5c70a1,start X-Google-Attributes: gidf74b3,public From: Tinguely.Lionel@pmintl.ch (Lionel Tinguely) Subject: What this synchronized means ? Date: 1998/11/09 Message-ID: <364e18c6.284923267@167.149.174.144> X-Deja-AN: 409977900 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-Complaints-To: news@ubnnews.unisource.ch X-Trace: ubnnews.unisource.ch 910629069 27315 (None) 194.209.91.2 Organization: PME Mime-Version: 1.0 Reply-To: Tinguely.Lionel@pmintl.ch Newsgroups: borland.public.jbuilder.java.language