All functions in EWL are thread-safe by defining the EWL_THREADSAFE macro as 1 when compiling EWL itself. When the EWL_THREADSAFE macro is 0, many of the EWL functions lose their thread safe attributes. It may be useful to leave the EWL_THREADSAFE macro as 0 even on a multithreaded system to improve execution speed. The library functions will be faster if they do not have to wait for thread synchronization.
| Header File | Reentrant Function |
|---|---|
| stdlib.h | rand_r() |
| string.h | strerror_r() |
| time.h | asctime_r(), ctime_r(), gmtime_r(), localtime_r() |