1 /* $NetBSD: nothread.c,v 1.2 2013/11/22 15:52:05 christos Exp $ */
4 * Sven Verdoolaege. All rights reserved.
6 * See the LICENSE file for redistribution information.
12 static const char sccsid
[] = "Id: nothread.c,v 1.4 2000/07/22 14:52:37 skimo Exp (Berkeley) Date: 2000/07/22 14:52:37 ";
15 #include <sys/types.h>
16 #include <sys/queue.h>
18 #include <bitstring.h>
26 #include "../common/common.h"
28 static int vi_nothread_run
__P((WIN
*wp
, void *(*fun
)(void*), void *data
));
29 static int vi_nothread_lock
__P((WIN
*, void **));
34 * PUBLIC: void thread_init __P((GS *gp));
39 gp
->run
= vi_nothread_run
;
40 gp
->lock_init
= vi_nothread_lock
;
41 gp
->lock_end
= vi_nothread_lock
;
42 gp
->lock_try
= vi_nothread_lock
;
43 gp
->lock_unlock
= vi_nothread_lock
;
47 vi_nothread_run(WIN
*wp
, void *(*fun
)(void*), void *data
)
54 vi_nothread_lock (WIN
* wp
, void **lp
)