libosmocore/utils
Pau Espin d12f698dbb logging: Introduce mutex API to manage log_target in multi-thread envs
log_enable_multithread() enables use of locks inside the
implementation. Lock use is disabled by default, this way only
multi-thread processes need to enable it and suffer related
complexity/performance penalties.

Locks are required around osmo_log_target_list and items inside it,
since targets can be used, modified and deleted by different threads
concurrently (for instance, user writing "logging disable" in VTY while
another thread is willing to write into that target).

Multithread apps and libraries aiming at being used in multithread apps
should update their code to use the locks introduced here when
containing code iterating over osmo_log_target_list explictly or
implicitly by obtaining a log_target (eg. osmo_log_vty2tgt()).

Related: OS#4088
Change-Id: Id7711893b34263baacac6caf4d489467053131bb
2019-10-09 14:19:52 +02:00
..
Makefile.am logging: Introduce mutex API to manage log_target in multi-thread envs 2019-10-09 14:19:52 +02:00
conv_codes_gsm.py Don't enforce Python 2 for utilities 2018-07-02 20:30:31 +07:00
conv_gen.py Don't enforce Python 2 for utilities 2018-07-02 20:30:31 +07:00
gen_website_doc_tree.sh add script to generate http://www.osmocom.org/doc tree structure 2011-08-20 17:40:08 +02:00
gsmtap.py utils: add gsmtap_logread.py a gsmtap log reader 2019-06-04 08:37:06 +00:00
gsmtap_logread.py utils: add gsmtap_logread.py a gsmtap log reader 2019-06-04 08:37:06 +00:00
osmo-arfcn.c gsm: Deprecate buggy gsm_arfcn2band API and introduce gsm_arfcn2band_rc 2018-11-20 16:56:28 +00:00
osmo-auc-gen.c utils: Fix false positive in compiler warning 2017-11-16 16:16:08 +00:00
osmo-config-merge.c Add multipatch capability to osmo-config-merge 2019-02-22 21:28:45 +00:00
osmo-sim-test.c cosmetic: osmo-sim-test.c: use memcpy instead of strncpy 2018-07-27 18:15:44 +00:00