From 35094fe7ee848de2f73b887dc231a2bbb5b28aa0 Mon Sep 17 00:00:00 2001 From: cxl Date: Tue, 2 May 2017 13:53:13 +0000 Subject: [PATCH] .docs git-svn-id: svn://ultimatepp.org/upp/trunk@11051 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/src.tpp/Thread$en-us.tpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/uppsrc/Core/src.tpp/Thread$en-us.tpp b/uppsrc/Core/src.tpp/Thread$en-us.tpp index 82f47dabd..47238f322 100644 --- a/uppsrc/Core/src.tpp/Thread$en-us.tpp +++ b/uppsrc/Core/src.tpp/Thread$en-us.tpp @@ -61,6 +61,11 @@ can be already finished and not running anymore (calling to Wait in that case returns immediately).&] [s3; &] [s4; &] +[s5;:Upp`:`:Thread`:`:GetId`(`)const: [_^Upp`:`:Thread`:`:Id^ Thread`::Id]_[* GetId]()_[@(0.0.255) c +onst]&] +[s2;%% Returns the system`-unique id of thread.&] +[s3; &] +[s4; &] [s5;:Thread`:`:GetHandle`(`)const: HANDLE_[* GetHandle]()_[@(0.0.255) const ][*C `[WIN32`]]&] [s5;:Thread`:`:GetHandle`(`)const: pthread`_t_[* GetHandle]()_[@(0.0.255) const @@ -109,6 +114,11 @@ client code should call the already installed function (return value is not null)&] [s3; &] [s4; &] +[s5;:Upp`:`:Thread`:`:GetCurrentId`(`): [@(0.0.255) static] [_^Upp`:`:Thread`:`:Id^ Threa +d`::Id]_[* GetCurrentId]()&] +[s2;%% Returns the system`-unique id of calling thread.&] +[s3; &] +[s4; &] [s5;:Thread`:`:Priority`(int`): [@(0.0.255) bool]_[* Priority]([@(0.0.255) int]_[*@3 percent]) &] [s2;%% Sets the treads priority to [%-*@3 percent ][%- (0 to 200)]. In