Change in libosmocore[master]: make all library-internal static buffers thread-local
gerrit-no-reply at lists.osmocom.org
Wed Apr 3 19:35:43 UTC 2019
Hello Vadim Yanitskiy, Jenkins Builder,
I'd like you to reexamine a change. Please visit
to look at the new patch set (#5).
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 functiosn once. They're of course still not
re-entrant. If you need re-entrancy, you will need to use the _c()
or _buf() suffix versionf 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/5
To view, visit https://gerrit.osmocom.org/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 (1000002)
Gerrit-Reviewer: Vadim Yanitskiy <axilirator at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gerrit-log