Files
srab/исх/струя/струя.tri
2025-11-26 21:32:41 +03:00

22 lines
654 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
модуль струя
импорт "исх/струя/струя-внутр"
// c:include "pstruya.h"
фн tri_thread_create(струя: струя-внутр.Струя, аргумент: *): Цел64 @внеш
фн tri_thread_join(ид: Цел64) @внеш
фн tri_thread_detach(ид: Цел64) @внеш
фн новая струя*(струя: струя-внутр.Струя, аргумент: *): Цел64 {
вернуть tri_thread_create(струя, аргумент)
}
фн ждать струю*(ид: Цел64) {
tri_thread_join(ид)
}
фн отсоединить струю*(ид: Цел64) {
tri_thread_detach(ид)
}