synchronized void function()
{
int two = 1+1;
}
is really just short for
void function()
{
synchronized(this)
{
int two = 1+1:
}
}
same thing with synchronized static functions, except they synchronize on Foo.class
synchronized void function()
{
int two = 1+1;
}
void function()
{
synchronized(this)
{
int two = 1+1:
}
}
AoMM: Impalement! Friends running oversized novelty swords through friends never happens in a Sunrise series! Never!