1 /* $NetBSD: nothread.c,v 1.3 2014/01/26 21:43:45 christos Exp $ */
4 * Sven Verdoolaege. All rights reserved.
6 * See the LICENSE file for redistribution information.
11 #include <sys/cdefs.h>
14 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 ";
17 __RCSID("$NetBSD: nothread.c,v 1.3 2014/01/26 21:43:45 christos Exp $");
20 #include <sys/types.h>
21 #include <sys/queue.h>
23 #include <bitstring.h>
31 #include "../common/common.h"
33 static int vi_nothread_run
__P((WIN
*wp
, void *(*fun
)(void*), void *data
));
34 static int vi_nothread_lock
__P((WIN
*, void **));
39 * PUBLIC: void thread_init __P((GS *gp));
44 gp
->run
= vi_nothread_run
;
45 gp
->lock_init
= vi_nothread_lock
;
46 gp
->lock_end
= vi_nothread_lock
;
47 gp
->lock_try
= vi_nothread_lock
;
48 gp
->lock_unlock
= vi_nothread_lock
;
52 vi_nothread_run(WIN
*wp
, void *(*fun
)(void*), void *data
)
59 vi_nothread_lock (WIN
* wp
, void **lp
)