Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Thread::GetCurrentThreadId() and Thread::GetCurrentThreadHandle() new methods
Re: Thread::GetCurrentThreadId() and Thread::GetCurrentThreadHandle() new methods [message #30611 is a reply to message #30603] Wed, 12 January 2011 09:49 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
tojocky wrote on Tue, 11 January 2011 10:11

mirek wrote on Tue, 11 January 2011 15:49

We have

Handle GetHandle() const { return handle; }

but no equivalent for thread ID (whereas we have both as static method).



GetHandle is not a static method. GetHandle and GetCurrentHandle are different methods.



I am sorry that I described it still in a confusing way.

I mean we are planning to have:

	static Handle GetCurrentHandle(){
	static Id GetCurrentId(){


but we only have now

        Handle GetHandle();


is not

       
        Id GetId();


missing?

As for TLS method, without such GetId() you definitely do not need to add it as part of interface... You can define TLS variable anywhere you need to do this fast Smile And it is true that system Id has some expected meaning...

[Updated on: Wed, 12 January 2011 09:49]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: CppBase/Parser.cpp patch (SVN r2960)
Next Topic: virtual void Ctrl::PaintOver(Draw& w) new method
Goto Forum:
  


Current Time: Tue May 21 02:24:30 CEST 2024

Total time taken to generate the page: 0.01768 seconds