fix pthread issue

This commit is contained in:
Vitaly Pavlov 2024-10-11 00:31:49 +00:00
parent 30867396f2
commit 0d9c205610
3 changed files with 6 additions and 2 deletions

View File

@ -51,6 +51,8 @@ struct linux_sockaddr {
typedef int (*loop_func_t)(void *arg); typedef int (*loop_func_t)(void *arg);
extern __thread struct thread *pcurthread;
int ff_init(int argc, char * const argv[]); int ff_init(int argc, char * const argv[]);
void ff_run(loop_func_t loop, void *arg); void ff_run(loop_func_t loop, void *arg);

View File

@ -5,6 +5,7 @@ ff_setsockopt
ff_getsockopt ff_getsockopt
ff_ioctl ff_ioctl
ff_close ff_close
ff_compat
ff_read ff_read
ff_readv ff_readv
ff_write ff_write
@ -59,4 +60,5 @@ ff_zc_mbuf_write
ff_zc_mbuf_read ff_zc_mbuf_read
ff_get_traffic ff_get_traffic
ff_pthread_create ff_pthread_create
ff_pthread_join ff_pthread_join
pcurthread

View File

@ -55,7 +55,7 @@
TAILQ_HEAD(prisonlist, prison); TAILQ_HEAD(prisonlist, prison);
__thread struct thread *pcurthread; __thread struct thread *pcurthread = NULL;
struct cdev; struct cdev;
struct vnode *rootvnode; struct vnode *rootvnode;