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