Merge pull request #845 from wenddak1ng/pthread_fix

fix pthread issue
This commit is contained in:
johnjiang 2024-10-12 21:15:48 +08:00 committed by GitHub
commit 50188e997c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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);
extern __thread struct thread *pcurthread;
int ff_init(int argc, char * const argv[]);
void ff_run(loop_func_t loop, void *arg);

View File

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

View File

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