int McAccess::read(int fd, void *buf, int size) { int res; WaitSema(_sema); mcRead(fd, buf, size); mcSync(0, NULL, &res); SignalSema(_sema); return res; }
int mcIO::read(int fd, unsigned char *buffer, int size) { int rv; #ifdef AIOMC_DEBUG // printf("mcIO read\n"); #endif mcRead(fd, buffer, size); mcSync(MC_WAIT, NULL, &rv); return rv; }