On 01/12/2015 03:22 PM, Ola Liljedahl wrote:
strtok() is not thread-safe and thus doesn't seem like a great idea to
use it in a multithreaded application based on ODP. I don't know about
this exact usage here, perhaps this argument parsing is always only
going to happen in a single thread?
parse_args() done before any threads init. So it's safe here. If strtok
is defined then
it's better to go with it then define POSIX.
+1 For Ciprians solution.
Maxim.
_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp