Difference between revisions of "Thread (Русский)"

(Page created)
 
Line 8: Line 8:
 
}}
 
}}
 
== Функции ==
 
== Функции ==
{{#ask: [[Category:Functions]] [[parent::Thread]] OR [[parent::Object]]
+
{{#ask: [[Category:Functions]] [[parent::Thread||Object]] [[Concept:Current]]
 
| headers=hide
 
| headers=hide
 
| ?Description
 
| ?Description

Revision as of 03:16, 30 May 2013

Available since LÖVE 0.7.0
This type is not supported in earlier versions.

Поток - это часть кода, которая может выполняться параллельно с другими потоками.

Конструкторы

love.thread.newThreadCreates a new Thread from a filename, string or FileData object containing Lua code.

Функции

Object:releaseImmediately destroys the object's Lua reference.
Object:typeGets the type of the object as a string.
Object:typeOfChecks whether an object is of a certain type.
Thread:demandReceive a message from a thread. Wait for the message to exist before returning.
Thread:getGet a value.
Thread:getErrorRetrieves the error string from the thread.
Thread:getKeysReturns the names of all messages as a table.
Thread:getNameGet the name of a thread.
Thread:isRunningReturns whether the thread is currently running.
Thread:killForcefully terminate the thread.
Thread:peekReceive a message from a thread, but leave it in the message box.
Thread:receiveReceive a message from a thread.
Thread:sendSend a message.
Thread:setSet a value.
Thread:startStarts the thread.
Thread:waitWait for a thread to finish.

Смотрите также

Другие языки