summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Grinko <iivanich@gmail.com>2016-04-05 13:19:00 +0300
committerEthan Chen <intervigil@gmail.com>2016-04-05 12:03:34 -0700
commitb029b6eab526bae31fffe280cbc245ffe8833c04 (patch)
treed23b63bffd1a028e1db4bb757152d856489dd91b
parentef167667a4496d4717c7efd06c1bb076c708b9ee (diff)
downloadandroid_system_bt-b029b6eab526bae31fffe280cbc245ffe8833c04.tar.gz
android_system_bt-b029b6eab526bae31fffe280cbc245ffe8833c04.tar.bz2
android_system_bt-b029b6eab526bae31fffe280cbc245ffe8833c04.zip
Bluetooth: Allow REMOVE_EAGER_THREADS to be unset
REMOVE_EAGER_THREADS is set to true by default, so let device maintainers disable it locally in bdroid_buildcfg.h if needed. Change-Id: I199c509de6c2f1506eda9bda732aa2ce4176d186
-rw-r--r--hci/include/hci_internals.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/hci/include/hci_internals.h b/hci/include/hci_internals.h
index e28de6e70..3c25b112c 100644
--- a/hci/include/hci_internals.h
+++ b/hci/include/hci_internals.h
@@ -18,7 +18,13 @@
#pragma once
+#ifdef HAS_BDROID_BUILDCFG
+#include "bdroid_buildcfg.h"
+#endif
+
+#ifndef REMOVE_EAGER_THREADS
#define REMOVE_EAGER_THREADS TRUE
+#endif
#if (defined(REMOVE_EAGER_THREADS) && (REMOVE_EAGER_THREADS == TRUE))
#include "allocator.h"