From: Adam Dickmeiss Date: Thu, 23 Sep 2010 08:48:11 +0000 (+0200) Subject: Not using GNU threads anymore X-Git-Tag: v4.1.0~9 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=2af72908b33a7847f9e150902f276f8fc95b74ba Not using GNU threads anymore --- 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;