Commit Graph

17 Commits

Author SHA1 Message Date
Michael Iedema cc62ca4bb7 sync from commercial 270263e2437d5105b36fec2015176cfddec48ffb 2014-12-04 19:50:34 +01:00
Michael Iedema 88311c0670 merge 5.0 preview from commercial 2014-07-16 04:32:22 +02:00
Scott Van Gundy 00d91e90bb No real code changes only to comments and logging for GPRS
(upstream r8287)
2014-04-18 11:02:18 +02:00
Pat Thompson 7e87828c3b Allow an empty log level to mean use the default level.
This allows the CLI command "unconfig" on Log.Level.* or Log.Group.* to work as expected.
(upstream r8227)
2014-04-18 10:59:46 +02:00
dgotwisner d45cfa5ab5 Bug 1707 related changes - convert timestamps to use ISO date/time format.
(upstream r8170)
2014-04-18 10:55:44 +02:00
pat.thompson 0dc6d369e8 Back out r6976, r6977, r6980, r6981, which were namespace removals.
There is nothing wrong with namespace, and these changes generated 1700 lines of
irrelevant diff output making it difficult to compare various revisions of CommonLibs.
2014-03-31 12:17:26 +02:00
pat.thompson c17e42bd8e Result of merging features/dev -r7759:7824 to trunk.
Dont crash at shutdown.

Init logger gPid locally so Logger can be used in other programs besides OpenBTS, and shorten the log format.
2014-03-31 12:15:14 +02:00
dgotwisner 7b0e351a23 Remove smarts to cache thread id, as I believe there was a locking issue and
significantly added overhead dealing with locking each time than in just doing
the system call.
I expect that this will allow 1655 to work for Neel.
2014-03-31 12:11:05 +02:00
pat.thompson 32d756c24c Add Log.Group SMS for easier SMS debugging. 2014-03-31 12:06:44 +02:00
dgotwisner 6129dbfbc2 Changed logging system to "cache" gettid() values, to avoid system calls at
runtime (ie, when logging).
The implementation is cludgy. This is because we create threads before main,
as a result of global thread objects (as opposed to pointers to thread objects
that get new'ed and started in main).
A view of the system through strace indicates one or two calls to gettid() per
thread (usually 1, occasionally 2). Changing the read lock in Log() to a write
lock deadlocks.
2014-03-31 12:04:56 +02:00
dgotwisner 73ef35474f Eliminate getpid() calls when logging. 2014-03-31 12:03:44 +02:00
dgotwisner 4575b4d264 Fix more code with respect to bypassing "using namespace". Currently,
Utils.h still has a using namespace, to prevent non-CommonLibs? code from
breaking. All CommonLibs? code has been compiled with tue Utils.h "using
namespace" commented out, though.
2014-03-31 10:50:02 +02:00
dgotwisner 66a47d9bff Eliminate more "using namespace" statements. 2014-03-31 10:31:29 +02:00
Michael Iedema abec8dabb6 merged in commercial commonlibs 2014-03-24 22:57:31 +01:00
Kurtis Heimerl 59515c11f0 Complete Configuration sync. While testing, I discovered what I think is a race condition: getStr("SIP.SMSC") returned another config key ("GSM.MS.TA.Damping") which I assume is a race condition in the config cache. However, I've been unable to replicate the issue and I think it may resolve itself quickly (as these things are successfully cached)
git-svn-id: http://wush.net/svn/range/software/public/CommonLibs/trunk@5656 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2013-05-31 21:47:42 +00:00
David Burgess 22c77a7c6a git-svn-id: http://wush.net/svn/range/software/public/CommonLibs/trunk@2583 19bc5d8c-e614-43d4-8b26-e1612bc8e597 2011-11-20 00:22:41 +00:00
David Burgess c2c51d9107 Putting versions of RRLP, CommonLibs and sqlite3 into the public release branch.
git-svn-id: http://wush.net/svn/range/software/public/CommonLibs/trunk@2254 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-10-07 19:20:49 +00:00