# Uses of Class org.luaj.vm2.LuaThread (Luaj API)
Date: 2015-04-29

## Uses of Class
org.luaj.vm2.LuaThread

Packages that use LuaThread
org.luaj.vm2

Uses of LuaThread in org.luaj.vm2

Fields in org.luaj.vm2 declared as LuaThread
`LuaThread` `Globals.running` The currently running thread.

Methods in org.luaj.vm2 that return LuaThread
`LuaThread` `LuaThread.checkthread()`
`LuaThread` `LuaValue.checkthread()` Check that this is a `LuaThread`, or throw `LuaError` if it is not
`LuaThread` `Varargs.checkthread(int i)` Return argument i as a LuaThread if a lua thread, or throw an error if any other type.
`LuaThread` `Varargs.optthread(int i, LuaThread defval)` Return argument i as a LuaThread if a lua thread, `defval` if nil, or throw a LuaError if any other type.
`LuaThread` `LuaNil.optthread(LuaThread defval)`
`LuaThread` `LuaThread.optthread(LuaThread defval)`
`LuaThread` `LuaValue.optthread(LuaThread defval)` Check that optional argument is a thread and return as `LuaThread`

Methods in org.luaj.vm2 with parameters of type LuaThread
`Varargs` `LuaThread.State.lua_resume(LuaThread new_thread, Varargs args)`
`LuaThread` `Varargs.optthread(int i, LuaThread defval)` Return argument i as a LuaThread if a lua thread, `defval` if nil, or throw a LuaError if any other type.
`LuaThread` `LuaNil.optthread(LuaThread defval)`
`LuaThread` `LuaThread.optthread(LuaThread defval)`
`LuaThread` `LuaValue.optthread(LuaThread defval)` Check that optional argument is a thread and return as `LuaThread`

Copyright © 2007-2015 Luaj.org. All Rights Reserved.