mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
change name
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user