File:  [RetroPC.NET] / np2 / x11 / taskmng.c
Revision 1.2: download - view: text, annotated - select for diffs
Sat Dec 20 01:08:01 2003 JST (21 years, 10 months ago) by monaka
Branches: MAIN
CVS tags: VER_0_82_x64, VER_0_82, VER_0_81A, VER_0_81, VER_0_80, VER_0_79, VER_0_78, VER_0_77, VER_0_76, VER_0_75, VER_0_74, VER_0_73, HEAD
Qt 2.x and SDL.

#include "compiler.h"

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

#include "taskmng.h"


void
taskmng_initialize(void)
{

	np2running = TRUE;
}

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 = FALSE;
}

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