lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Ok, it looks direct.
To me, the difference between running and normal is obscure.
What "normal" means ? 

Thanks.

-----邮件原件-----
发件人: lua-bounces@bazar2.conectiva.com.br
[mailto:lua-bounces@bazar2.conectiva.com.br] 代表 Matthew Paul Del Buono
发送时间: 2009年3月29日 16:43
收件人: lua@bazar2.conectiva.com.br
主题: Re: A problem about coroutine's status

>I have not understand your example about running and normal 
status.
>Can you give me further explains?
>
>For "coroutine.status(coroutine.running())", what means ?
>

It's a simplified version of this:

> function foo()
>> print(coroutine.status(co))
>> end
> co = coroutine.create(foo)
> coroutine.resume(co)
running