20,741
edits
(→thread) |
(→thread) |
||
| Line 764: | Line 764: | ||
|text = | |text = | ||
|example1text = start a new worker thread | |example1text = start a new worker thread | ||
|example1 = | |example1 = thread.newthread( func() {} ); | ||
}} | |||
{{Nasal doc | |||
|syntax = thread.newlock(func); | |||
|source = {{simgear file|simgear/nasal/threadlib.c|l=101|t=Source}} | |||
|text = | |||
|example1text = create a new lock | |||
|example1 = var lock = thread.newlock() | |||
}} | }} | ||