
11-22-2008, 01:55 AM
|
I never asked for this.
|
Join Date: Jun 2005
Posts: 855
|
|
Right, another question:
Does GS2 have some sort of semaphore I can use to tell a specific function to idle and wait until data from the server is received? I figured I could do this by setting a while loop which runs a 'idle' task until a onActionServerside -> onActionClientside bounce retrieves the data and updates the variable controlling the while loop, simultaneously ending the idling session and returning the function with the proper data.
Pretty rudimentary stuff, but I'm terrified of trying it out in fear that there's no anti-infinite loop control on the server end, and that ****ing around with this stuff will lag the server I'm currently on to ****. Normally in Python I'd just thread major functions or aspects and plonk semaphores whereever I needed them - I'm not sure if GS2 has the functionality with threading at all |
__________________
I hope for nothing. I fear nothing. I am free.
|
|
|