free5gc / upf

Apache License 2.0
32 stars 51 forks source link

Fixed: UTLT_LogPrint() is not thread safe. #43

Closed shugo-h closed 2 years ago

shugo-h commented 2 years ago

UTLT_LogPrint() is not thread safe. Therefore, the log message buffer is possible to be overwritten by another thread while a thread is running UTLT_LogPrint().

To make UTLT_LogPrint() thread safe, pthread mutex lock is used.