Difference between revisions of "love.thread (Français)"

(initial copy from english version)
 
(translate what is possible)
Line 1: Line 1:
 
{{newin|[[0.7.0]]|type=module}}
 
{{newin|[[0.7.0]]|type=module}}
Allows you to work with threads.
+
Vous permet d'utiliser les threads.
{{notice|[[love.graphics]] and [[love.thread]] don't play nice together. Don't call love.graphics functions from a [[Thread]].}}
+
{{notice|[[love.graphics]] et [[love.thread]] ne fonctionne pas bien ensemble. N'appelez pas les fonctions love.graphics depuis un [[Thread]].}}
 
== Types ==
 
== Types ==
 
{{#ask: [[Category:Types]] [[parent::love.thread]]
 
{{#ask: [[Category:Types]] [[parent::love.thread]]
Line 7: Line 7:
 
| ?Description
 
| ?Description
 
}}
 
}}
== Functions ==
+
== Fonctions ==
 
{{#ask: [[Category:Functions]] [[parent::love.thread]]
 
{{#ask: [[Category:Functions]] [[parent::love.thread]]
 
| headers=hide
 
| headers=hide

Revision as of 17:17, 30 March 2011

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

Vous permet d'utiliser les threads.

O.png love.graphics et love.thread ne fonctionne pas bien ensemble. N'appelez pas les fonctions love.graphics depuis un Thread.  


Types

ChannelAn object which can be used to send and receive data between different threads.
ThreadA Thread represents a thread.

Fonctions

love.thread.getChannelCreates or retrieves a named thread channel.
love.thread.getThreadLook for a thread and get its object.
love.thread.getThreadsGet all threads.
love.thread.newChannelCreates a new unnamed thread channel.
love.thread.newThreadCreates a new Thread from a filename, string or FileData object containing Lua code.

See Also

Other Languages