home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 1
/
ADE-1.bin
/
ade-dist
/
kaffe-0.5p4-src.tgz
/
tar.out
/
contrib
/
kaffe
/
config
/
i386
/
win32
/
threads.h
< prev
Wrap
C/C++ Source or Header
|
1996-09-28
|
914b
|
38 lines
/*
* i386/win95/threads.h
* i386 threading information.
*
* Copyright (c) 1996 Systems Architecture Research Centre,
* City University, London, UK.
*
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
* Written by Tim Wilkinson <tim@sarc.city.ac.uk>, June 1996.
*/
#ifndef __i386_win95_threads_h
#define __i386_win95_threads_h
/**/
/* Thread handling */
/**/
#define USE_INTERNAL_THREADS
struct _ctx;
struct _thread;
void threadSwitch(struct _ctx*, struct _ctx*);
void threadInit(struct _ctx*, void*);
void threadInfo(struct _ctx*);
int threadFrames(struct _thread*);
#define THREADSTACKSIZE (32 * 1024)
#define THREADSWITCH(to, from) threadSwitch(to, from)
#define THREADINIT(to, func) threadInit(to, func)
#define THREADINFO(ee) threadInfo(ee)
#define THREADFRAMES(tid, cnt) cnt = threadFrames(tid)
#endif