Change in ...libosmocore[master]: logging: Introduce mutex API to manage log_target in multi-thread envs

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

osmith gerrit-no-reply at lists.osmocom.org
Wed Oct 9 08:12:55 UTC 2019


osmith has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmocore/+/15560 )

Change subject: logging: Introduce mutex API to manage log_target in multi-thread envs
......................................................................


Patch Set 6: Code-Review-1

(3 comments)

-1 for lock instead of unlock

https://gerrit.osmocom.org/#/c/15560/6/src/logging.c 
File src/logging.c:

https://gerrit.osmocom.org/#/c/15560/6/src/logging.c@924 
PS6, Line 924: /*! Find a registered log target.
(unrelated change)


https://gerrit.osmocom.org/#/c/15560/6/src/logging.c@1014 
PS6, Line 1014: 	log_tgt_mutex_lock();
Shouldn't this be log_tgt_mutex_unlock()?


https://gerrit.osmocom.org/#/c/15560/6/src/vty/logging_vty.c 
File src/vty/logging_vty.c:

https://gerrit.osmocom.org/#/c/15560/6/src/vty/logging_vty.c@122 
PS6, Line 122: 
How about placing these two macros in a header file, and using them in gprs_bssgp_vty.c and gprs_ns_vty.c too?



-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/15560
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Id7711893b34263baacac6caf4d489467053131bb
Gerrit-Change-Number: 15560
Gerrit-PatchSet: 6
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: lynxis lazus <lynxis at fe80.eu>
Gerrit-Reviewer: neels <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-Comment-Date: Wed, 09 Oct 2019 08:12:55 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191009/b5cfa563/attachment.htm>


More information about the gerrit-log mailing list