You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to aionj-hungary
Hi,
Obviously Ai instances are mutable but there is no any synchronization
at all.
For ex:
public void setAiState(AIState aiState)
{
if(this.aiState != aiState)
{
this.aiState = aiState;
isStateChanged = true;
}
}
setAiState can be accessed from several threads at same time and
aiState not atomic and moreover if-changed-set clause not synchronized
and more over aiState and isStateChanged r not volatile.
So Mr.Poke or someone can explain me why it was implemented this why?
Thanks in advance.
Mr. Poke
unread,
Jan 7, 2011, 10:32:26 AM1/7/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message