TThread and static method data.

TThread and static method data.

Post by Team » Sun, 24 Aug 2003 01:53:40



No.


Yes.

If you want to store a value that is unique for each instance, then either
make the value a member of the thread class, or else use TLS (thread local
storage) instead by declaring the variable with the __thread modifier.


Gambit



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ( http://www.yqcomputer.com/ ).
Version: 6.0.510 / Virus Database: 307 - Release Date: 8/14/03
 
 
 

1. Can a static method call a non-static inherited method?

2. Static method vs Non Static method

i really wander what makes static method special?

in fact i can access a non static method statically using '::'

class aclass {
function anonstatic() {
echo 'non static';
}

static function astatic() {
echo 'static';
}
}

$aobj = new aclass();

aclass::anonstatic();
//it works.

$aobj->astatic();
//it works too.

i see a diffrence that i can't use $this in static method but nothing.

i don't feel there's no reason i have to make a mothod static.

is there any reason i have to declare a mothod as static?

apache2.0/php5.14

3. [PHP] Calling static child method from inherited static parent method

4. public (static) class method calls private (static) class method,works in records, but not in objects ?

5. public (static) class method calls private (static) class method, works in records, but not in objects ?

6. public (static) class method calls private (static) class method,worksin records, but not in objects ?

7. Calling static child method from inherited static parent method

8. Using simultaneously TThread::Synchronize() with TThread::Suspend()

9. TThread and the Synchronize Method in BDS2006

10. Opening a database connection from within Execute method of TThread object

11. SetSuspended, Suspend and Resume methods of the TThread are not thread-safe ?..

12. TThread::Synchronize method

13. Delphi 2006 for Win32: Override method Twriter.execute should match case of ancestor TThread.Execute (H2365)

14. Static V/s Non Static Methods

15. Confusion over Static class and Static method!