From a86ca815411e8ee9990fbe4d3855f6ba5e097cad Mon Sep 17 00:00:00 2001 From: Francois TABURET <francois.taburet@nokia.com> Date: Mon, 19 Nov 2018 13:17:23 +0100 Subject: [PATCH] Update arch.md --- common/utils/LOG/DOC/arch.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/utils/LOG/DOC/arch.md b/common/utils/LOG/DOC/arch.md index 348216983b8..a472107d50f 100644 --- a/common/utils/LOG/DOC/arch.md +++ b/common/utils/LOG/DOC/arch.md @@ -4,6 +4,9 @@ The oai logging facility is implemented in two source files, located in [common/ 1. [log.c](../log.c) contains logging implementation 1. [log.h](../log.h) is the logging facility include file containing both private and public data type definitions. It also contain API prototypes. +The logging facility doesn't create any thread, all api's are executed in the context of the caller. The tracing macro's LOG_<X> are all using the logRecord_mt function to output the messages. To keep this function thread safe it must perform a single system call the output stream. The buffer used to build the message must be specific to the calling thread, which is today enforced by using a variable in the logRecord_mt stack. + +Data used by the logging utility are defined by the `log_t` structure which is allocated at init time, when calling the `logInit` function. [logging facility main page](log.md) [oai Wikis home](https://gitlab.eurecom.fr/oai/openairinterface5g/wikis/home) \ No newline at end of file -- GitLab