Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: thread proof/reentrance



taferner@kde.org(Stefan Taferner)  04.12.04 20:08

>> is strtok really thread proof?

>No, it is not. You have to use strtok_r.

OK.



>However, as long as this happens at startup where no other thread
>is running you should be safe. But using strtok_r everywhere does
>not hurt and makes code more safe for future changes.

100% ACK.



>All functions that have a thread safe implementation (and some
>more unfortunately):  apropos _r|egrep '^[a-z_]*_r '

Nice idea

msi:~/video/VDR# apropos r|egrep '^[a-z]*_r '
apropos: warning: LM983[1/2/3] based USB flatbed scanners contains a pointer loop
apropos: warning: SANE backend for Plustek parallel port and contains a pointer loop
strtok_r (3)         - extract tokens from strings

That's not much.
Which docs am i missing? (debian)
Rainer---<=====>                         Vertraulich
             //
           //                              
         <=====>--------------ocholl, Kiel, Germany ------------





Home | Main Index | Thread Index