[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: 答复: A problem about coroutine's status
- From: "lee" <leeyacn@...>
- Date: Sun, 29 Mar 2009 15:48:29 +0800
I have not understand your example about running and normal status.
Can you give me further explains?
For "coroutine.status(coroutine.running())", what means ?
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
> co2 = coroutine.create(function() print(coroutine.status(co1)) end)
> co1 = coroutine.create(function()
print(coroutine.status(coroutine.running())) coroutine.resume(co2) end)
> coroutine.resume(co1)
running
normal