question about thread safty.
Posted: 18 Oct 2010, 09:32
I want to handle the login process from a different thread than the system handler.
I am going to have in the thread function something like :
User usr = ExtensionHelper.instance().canLogin(userName, pass, chan,this.getOwnerZone(),true);
ActionscriptObject res = new ActionscriptObject();
res.put("_cmd", "logOK");
sendResponse(res, -1, null, userChannel);
my question is : are "canLogin" and "sendResponse" function are thread safe. I looked at the documention but there is nothing there about these specific functions.
Thanks
Yakir.
I am going to have in the thread function something like :
User usr = ExtensionHelper.instance().canLogin(userName, pass, chan,this.getOwnerZone(),true);
ActionscriptObject res = new ActionscriptObject();
res.put("_cmd", "logOK");
sendResponse(res, -1, null, userChannel);
my question is : are "canLogin" and "sendResponse" function are thread safe. I looked at the documention but there is nothing there about these specific functions.
Thanks
Yakir.