|
|
@@ -4682,20 +4682,20 @@ const char *STD[][2] = {
|
|
|
" })\n"
|
|
|
"}\n"
|
|
|
"func Thread(fn, args=[]): Object({\n"
|
|
|
- " __str: func (this) use (fn, args): format(\"<Thread _ _>\", fn, "
|
|
|
+ " \"__str\": func (this) use (fn, args): format(\"<Thread _ _>\", fn, "
|
|
|
"args),\n"
|
|
|
- " _thread: nil,\n"
|
|
|
- " start: func (this) use (fn, args) {\n"
|
|
|
+ " \"_thread\": nil,\n"
|
|
|
+ " \"start\": func (this) use (fn, args) {\n"
|
|
|
" if this._thread !is nil\n"
|
|
|
" return\n"
|
|
|
" this._thread = thread_create(fn, args)\n"
|
|
|
" return this\n"
|
|
|
" },\n"
|
|
|
- " join: func (this) {\n"
|
|
|
+ " \"join\": func (this) {\n"
|
|
|
" if this._thread !is nil\n"
|
|
|
" return this._thread.join()\n"
|
|
|
" },\n"
|
|
|
- " is_joined: func (this): this._thread.joined\n"
|
|
|
+ " \"is_joined\": func (this): this._thread.joined\n"
|
|
|
"})\n"
|
|
|
"func Mutex() {\n"
|
|
|
" inline `void *mutex = qi_mutex_create()`\n"
|