projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b11da5f
)
Not using GNU threads anymore
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 23 Sep 2010 08:48:11 +0000
(10:48 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 23 Sep 2010 08:48:11 +0000
(10:48 +0200)
src/statserv.c
patch
|
blob
|
history
diff --git
a/src/statserv.c
b/src/statserv.c
index
8598891
..
4def68a
100644
(file)
--- a/
src/statserv.c
+++ b/
src/statserv.c
@@
-42,8
+42,6
@@
#if YAZ_POSIX_THREADS
#include <pthread.h>
#if YAZ_POSIX_THREADS
#include <pthread.h>
-#elif YAZ_GNU_THREADS
-#include <pth.h>
#endif
#include <fcntl.h>
#endif
#include <fcntl.h>
@@
-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);
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
#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;
#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;
#else
fprintf(stderr, "%s: Threaded mode not available.\n", me);
return 1;