change name

This commit is contained in:
Cloud Wu
2015-10-15 14:08:01 +08:00
parent bab91a3067
commit 2d27df6f46

View File

@@ -121,8 +121,8 @@ local function pop_response(self)
if func then if func then
return func, co return func, co
end end
self.wait_response = coroutine.running() self.__wait_response = coroutine.running()
skynet.wait(self.wait_response) skynet.wait(self.__wait_response)
end end
end end
@@ -134,9 +134,9 @@ local function push_response(self, response, co)
-- response is a function, push it to __request -- response is a function, push it to __request
table.insert(self.__request, response) table.insert(self.__request, response)
table.insert(self.__thread, co) table.insert(self.__thread, co)
if self.wait_response then if self.__wait_response then
skynet.wakeup(self.wait_response) skynet.wakeup(self.__wait_response)
self.wait_response = nil self.__wait_response = nil
end end
end end
end end