Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualdburner

Posted 16 September 2012 - 02:51 PM

I've thought about what you said and coded a bit further(implemented like 99% of the lobby functions) and decided I'l just use the threads from the async methods because the only locks I think I will need are those on the playersList in the NetRoom when adding or removing clients. Since joining and leaving rooms are not very frequent(I think) those locks shouldn't cause many problems.
Parsing the messages so far take very little time so I guess I dont have to worry about blocking the async threads too much. If I will get in trouble I will change the methods of calling the parsing functions quite easy. I still got the OnTick methods but they are kinda useless now.

Thanks for the answer hplus0603Posted Image

#1dburner

Posted 16 September 2012 - 02:50 PM

I've thought about what you said and coded a bit further(implemented like 99% of the lobby functions) and decided I'l just use the threads from the async methods because the only locks I think I will need are those on the playersList in the NetRoom when adding or removing clients. Since joining and leaving rooms are not very frequent(I think) those locks shouldn't cause many problems.
Parsing the messages so far take very little time till now so I guess I dont have to worry about blocking the async threads too much. If I will get in trouble I will change the methods of calling the parsing functions quite easy. I still got the OnTick methods but they are kinda useless now.

Thanks for the answer hplus0603Posted Image

PARTNERS