createHoldemTable() in XmlRemoteLobbyContext locks looking for semaphore
5 views
Skip to first unread message
Greg Baker
unread,
May 11, 2011, 8:02:57 AM5/11/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
to cspoker-discuss
I'm not sure what I'm doing wrong here. I'm trying to write a simple
client/server poker game that my colleagues and I can play.
final RemoteCSPokerServer remoteCSPokerServer = new
RemoteSocketServer(...);
final RemoteServerContext remoteServerContext =
remoteCSPokerServer.login(...);
final RemoteLobbyContext remoteLobbyContext =
remoteServerContext.getLobbyContext(...);
final DetailedHoldemTable detailedHoldemTable =
remoteLobbyContext.createHoldemTable(...);
The process gets locked up in
org.cspoker.client.xml.common.CallSynchronizer.perform() on the
semaphore.aquire() line. The table does get created on the server,
though. If I kill the client and reload I can see the table when I do
a remoteLobbyContext.getTableList().
Any ideas?
Greg Baker
unread,
May 11, 2011, 2:16:33 PM5/11/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
to cspoker-discuss
I kinda figured out why this is happening but am still lost.
Turns out I am creating the table from the same GUI component that
acts as my lobby listener. So when I create the table it fires the
table created event which tries to refresh the table list and this is
where it gets stuck. I guess the create table action isn't finished
before the refresh takes place.