3 * Sven Verdoolaege. All rights reserved.
5 * See the LICENSE file for redistribution information.
11 static const char sccsid
[] = "$Id: pthread.c,v 1.2 2000/07/04 21:48:54 skimo Exp $ (Berkeley) $Date: 2000/07/04 21:48:54 $";
14 #include <sys/types.h>
15 #include <sys/queue.h>
17 #include <bitstring.h>
27 #include "../common/common.h"
29 static void vi_pthread_run
__P((WIN
*wp
, void (*fun
)(void*), void *data
));
34 * PUBLIC: void thread_init __P((GS *gp));
39 gp
->run
= vi_pthread_run
;
43 vi_pthread_run(WIN
*wp
, void (*fun
)(void*), void *data
)
45 pthread_t
*t
= malloc(sizeof(pthread_t
));
46 pthread_create(t
, NULL
, fun
, data
);