Added code to check for "errors" from the accept call in thread_main() and
also a new thread_kill_threads() function which should cancel all threads when the main thread is being closed.
This commit is contained in:
1 parent
388920bc53
commit
1819c0f818
4 files changed
+33
-3
No files matched your search
+2
-1
@@ -1,4 +1,4 @@
|
||||
/* $Id: thread.h,v 1.3 2001-09-07 04:20:04 rjkaes Exp $
|
||||
/* $Id: thread.h,v 1.4 2002-01-25 00:01:45 rjkaes Exp $
|
||||
*
|
||||
* See 'thread.c' for more information.
|
||||
*
|
||||
@@ -30,6 +30,7 @@ extern short int thread_pool_create(void);
|
||||
extern int thread_listening_sock(uint16_t port);
|
||||
extern void thread_close_sock(void);
|
||||
extern void thread_main_loop(void);
|
||||
extern void thread_kill_threads(void);
|
||||
|
||||
extern short int thread_configure(thread_config_t type, unsigned int val);
|
||||
|
||||
|
||||
Reference in new issue
Block a user