Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Preud'homme <thomas.preudhomme@arm.com>2017-01-30 14:23:00 +0300
committerJeff Johnston <jjohnstn@redhat.com>2017-02-14 01:04:17 +0300
commitfa55c610facaae12e38d90d14e44fecd1259b3ab (patch)
treece19e155be44925f8bd7ed33b501cc414b47f3d2 /newlib/configure
parentaf272aca591fe1dc0f1be64ae5bda147ea98a047 (diff)
Only define static locks in multithreaded mode
Newlib build system defines __SINGLE_THREAD__ to allow concurrency code to be only compiled when newlib is configured for multithread. One such example are locks which become useless in single thread mode. Although most static locks are indeed guarded by !defined(__SINGLE_THREAD__), some are not. This commit adds these missing guards to __dd_hash_mutex, __atexit_recursive_mutex, __at_quick_exit_mutex and __arc4random_mutex. It also makes sure locking macros in lock.h are noop in single thread mode.
Diffstat (limited to 'newlib/configure')
0 files changed, 0 insertions, 0 deletions