From 2af72908b33a7847f9e150902f276f8fc95b74ba Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 23 Sep 2010 10:48:11 +0200 Subject: [PATCH] Not using GNU threads anymore --- src/statserv.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/statserv.c b/src/statserv.c index 8598891..4def68a 100644 --- a/src/statserv.c +++ b/src/statserv.c @@ -42,8 +42,6 @@ #if YAZ_POSIX_THREADS #include -#elif YAZ_GNU_THREADS -#include #endif #include @@ -947,18 +945,6 @@ static void listener(IOCHAN h, int event) pthread_t child_thread; pthread_create(&child_thread, 0, new_session, new_line); pthread_detach(child_thread); -#elif YAZ_GNU_THREADS - pth_attr_t attr; - pth_t child_thread; - - attr = pth_attr_new(); - pth_attr_set(attr, PTH_ATTR_JOINABLE, FALSE); - pth_attr_set(attr, PTH_ATTR_STACK_SIZE, 32*1024); - pth_attr_set(attr, PTH_ATTR_NAME, "session"); - yaz_log(YLOG_DEBUG, "pth_spawn begin"); - child_thread = pth_spawn(attr, new_session, new_line); - yaz_log(YLOG_DEBUG, "pth_spawn finish"); - pth_attr_destroy(attr); #else new_session(new_line); #endif @@ -1300,9 +1286,6 @@ int check_options(int argc, char **argv) #if YAZ_POSIX_THREADS control_block.dynamic = 0; control_block.threads = 1; -#elif YAZ_GNU_THREADS - control_block.dynamic = 0; - control_block.threads = 1; #else fprintf(stderr, "%s: Threaded mode not available.\n", me); return 1; -- 1.7.10.4