home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_08_04
/
8n04119a
< prev
next >
Wrap
Text File
|
1990-03-20
|
549b
|
24 lines
***************
** Listing 4 **
***************
/*
fork_start() -- Start the forked routine
This routine is used to call the forked routine. It
passes the four bytes to the target routine and then
resumes the previous task, which should always be the
fork queue. */
void fork_start()
{
/* Call the routine, passing the long parameter and the
address of the working TSS. */
(*current_routine)(current_param, &fdummy_tcb);
/* Task switch back to the fork queue task. */
resume_last();
}