diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-07-01 20:13:32 +0200 |
---|---|---|
committer | pespin <pespin@sysmocom.de> | 2019-07-19 11:44:13 +0000 |
commit | c9202ab0be5e3e89f5fa4236ef45d550cee91af6 (patch) | |
tree | 85e790a6fdf5db260eceabdb463a714cc30a1b8a /Transceiver52M | |
parent | b49a42e70b65d71ce705be931ddcfe88109da8d8 (diff) |
Logger: global Log mutex is now available from C code
This way the C++ logging API can still be used while allowing for C
files to use the same mutex.
Change-Id: I473e57479f8ae98a84ad00b76ff338f79f732236
Diffstat (limited to 'Transceiver52M')
-rw-r--r-- | Transceiver52M/osmo-trx.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Transceiver52M/osmo-trx.cpp b/Transceiver52M/osmo-trx.cpp index b8cf968..8a3f1e3 100644 --- a/Transceiver52M/osmo-trx.cpp +++ b/Transceiver52M/osmo-trx.cpp @@ -569,6 +569,10 @@ int main(int argc, char *argv[]) #endif #endif + if (!log_mutex_init()) { + fprintf(stderr, "Failed to initialize log mutex!\n"); + exit(2); + } convolve_init(); convert_init(); |