Esempio n. 1
0
int McAccess::close(int fd) {
	int res;
	WaitSema(_sema);
	mcClose(fd);
	mcSync(0, NULL, &res);
	SignalSema(_sema);
	return res;
}
Esempio n. 2
0
int mcIO::close(int fd)
{
	int rv;

#ifdef AIOMC_DEBUG
	printf("mcIO close\n");
#endif

	mcClose(fd);
	mcSync(MC_WAIT, NULL, &rv);
	return rv;
}