[riot-devel] Lightweight Syslog Implementation

Kaspar Schleiser kaspar at schleiser.de
Fri May 31 14:55:40 CEST 2019


On 5/29/19 11:57 AM, Juan Ignacio Carrano wrote:
> IPC/message queue backend.

RIOT's message queues are a poor choice for this, as they can only send
pointers around. That means the calling thread needs to allocate memory
for the log message and keep that valid until the message has been
processed, which means that it has to block. Or, the calling thread
allocates and the logd thread frees, which again requires allocations.

Better use a synchronised ringbuffer or pipe or tsrb.


More information about the devel mailing list