File:  [RetroPC.NET] / np2 / x11 / taskmng.c
Revision 1.3: download - view: text, annotated - select for diffs
Thu Jan 11 01:01:59 2007 JST (18 years, 9 months ago) by monaka
Branches: MAIN
CVS tags: HEAD
- Added verbose option.
- Use sig_atomic_t instead of int.

#include "compiler.h"

#include "np2.h"
#include "toolkit.h"

#include "taskmng.h"


void
taskmng_initialize(void)
{

	np2running = 1;
}

BOOL
taskmng_sleep(UINT32 tick)
{
	UINT32	base;

	base = GETTICK();
	while (taskmng_isavail() && ((GETTICK() - base) < tick)) {
		toolkit_event_process();
		usleep(960);
	}
	return taskmng_isavail();
}

void
taskmng_exit(void)
{

	np2running = 0;
}

RetroPC.NET-CVS <cvs@retropc.net>