summaryrefslogtreecommitdiff
path: root/src/basic/util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-10-27 00:02:45 +0100
committerLennart Poettering <lennart@poettering.net>2015-10-27 13:25:57 +0100
commitd4510856a007712900795c79853d2218780c2321 (patch)
tree3c9bf5662f4017a6763c78d638e1e38b1a2ccdf4 /src/basic/util.c
parent430f0182b72373145c839dbfe99d2382855cb8f8 (diff)
util-lib: move is_main_thread() to process-util.[ch]
Diffstat (limited to 'src/basic/util.c')
-rw-r--r--src/basic/util.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/basic/util.c b/src/basic/util.c
index b079e8af16..6fe4f47018 100644
--- a/src/basic/util.c
+++ b/src/basic/util.c
@@ -421,15 +421,6 @@ int glob_extend(char ***strv, const char *path) {
return k;
}
-bool is_main_thread(void) {
- static thread_local int cached = 0;
-
- if (_unlikely_(cached == 0))
- cached = getpid() == gettid() ? 1 : -1;
-
- return cached > 0;
-}
-
int block_get_whole_disk(dev_t d, dev_t *ret) {
char *p, *s;
int r;