Change in ...libosmocore[master]: make all library-internal static buffers thread-local
gerrit-no-reply at lists.osmocom.org
Tue Jun 4 08:44:03 UTC 2019
Hello fixeria, Jenkins Builder,
I'd like you to reexamine a change. Please visit
to look at the new patch set (#8).
Change subject: make all library-internal static buffers thread-local
make all library-internal static buffers thread-local
We have a number of library-internal static global buffers which are
mainly used for various stringification functions. This worked as
all of the related Osmocom programs were strictly single-threaded.
Let's make those buffers at least thread-local. This way every thread
gets their own set of buffers, and it's safe for multiple threads to
execute the same functions once. They're of course still not
re-entrant. If you need re-entrancy, you will need to use the _c()
or _buf() suffix version of those functions and work with your own
(stack or heap) buffers.
13 files changed, 32 insertions(+), 33 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/36/13436/8
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/13436
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <axilirator at gmail.com>
Gerrit-CC: Max <suraev at alumni.ntnu.no>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gerrit-log