[openbeos] Re: Waiting and waiting
- From: François Revol <revol@xxxxxxx>
- To: openbeos@xxxxxxxxxxxxx
- Date: Tue, 10 Dec 2002 15:45:43 +0100 (MET)
En réponse à Michael Phipps <mphipps1@xxxxxxxxxxxxxxxx>:
> Would you think that this would apply to things like strtok?
> That would be a good example for testing...
>
This one is the perfect example of self-contained function (not dealing with
IO or anything) that doesn't need to be taken care of. Except of course if
you implement it using global variables, but this would be very dumb :^)
as long as it uses local variables *only* it can be considered as
intrinsically thread-safe, as each instance is fully located on the stack of
the calling thread.
On the opposite every function that deals with something that belongs to a
whole team (memory, files, ...) must use locking (malloc(), fread, ...)
François.
- Follow-Ups:
- [openbeos] Re: Waiting and waiting
- From: argent
- [openbeos] Re: Waiting and waiting
- From: Axel =?iso-8859-1?q?D=F6rfler
- References:
- [openbeos] Re: Waiting and waiting
- From: Michael Phipps
Other related posts:
- » [openbeos] Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- » [openbeos] Re: Waiting and waiting
- [openbeos] Re: Waiting and waiting
- From: argent
- [openbeos] Re: Waiting and waiting
- From: Axel =?iso-8859-1?q?D=F6rfler
- [openbeos] Re: Waiting and waiting
- From: Michael Phipps