[openbeos] Re: Waiting and waiting

François Revol <revol@xxxxxxx> wrote:
[strtok]
> Ah, yeah, right, statics are just desguised globals :^)
> Here we just need to use TLS.

No, that's not possible, because we would have to reserve a slot 
specifically for those functions, and it's not always possible to 
remove the data afterwards; nobody forces you to call strtok() as long 
as there is any data, etc.
strtok() is not thread-safe by definition, and I don't think BeOS 
changed that at all (it would need to attach a generic fixed size 
buffer to every thread - not very likely and often not enough).

Adios...
   Axel.



Other related posts: