mirror of https://github.com/F-Stack/f-stack.git
fix pthread issue
This commit is contained in:
parent
30867396f2
commit
0d9c205610
|
@ -51,6 +51,8 @@ struct linux_sockaddr {
|
|||
|
||||
typedef int (*loop_func_t)(void *arg);
|
||||
|
||||
extern __thread struct thread *pcurthread;
|
||||
|
||||
int ff_init(int argc, char * const argv[]);
|
||||
|
||||
void ff_run(loop_func_t loop, void *arg);
|
||||
|
|
|
@ -5,6 +5,7 @@ ff_setsockopt
|
|||
ff_getsockopt
|
||||
ff_ioctl
|
||||
ff_close
|
||||
ff_compat
|
||||
ff_read
|
||||
ff_readv
|
||||
ff_write
|
||||
|
@ -59,4 +60,5 @@ ff_zc_mbuf_write
|
|||
ff_zc_mbuf_read
|
||||
ff_get_traffic
|
||||
ff_pthread_create
|
||||
ff_pthread_join
|
||||
ff_pthread_join
|
||||
pcurthread
|
|
@ -55,7 +55,7 @@
|
|||
|
||||
TAILQ_HEAD(prisonlist, prison);
|
||||
|
||||
__thread struct thread *pcurthread;
|
||||
__thread struct thread *pcurthread = NULL;
|
||||
|
||||
struct cdev;
|
||||
struct vnode *rootvnode;
|
||||
|
|
Loading…
Reference in New Issue