2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 02:27:40 -04:00

Missed a few references to NtFile.

This commit is contained in:
Darryl Pogue
2012-03-04 16:25:54 -08:00
parent d1da655fb2
commit 0168e89487

View File

@ -152,28 +152,6 @@ static void INtOpDispatch (
INtSocketOpCompleteSocketWrite((NtSock *) ntObj, (NtOpSocketWrite *) op);
break;
case kOpQueuedFileRead:
case kOpQueuedFileWrite:
INtFileOpCompleteQueuedReadWrite((NtFile *) ntObj, (NtOpFileReadWrite *) op);
// operation converted into kOpFileWrite so we cannot move
// to next operation until write operation completes
return;
case kOpFileRead:
case kOpFileWrite:
ASSERT(bytes != (uint32_t) -1);
if (!INtFileOpCompleteReadWrite((NtFile *) ntObj, (NtOpFileReadWrite *) op, bytes))
return;
break;
case kOpFileFlush:
INtFileOpCompleteFileFlush((NtFile *) ntObj, (NtOpFileFlush *) op);
break;
case kOpSequence:
INtFileOpCompleteSequence((NtFile *) ntObj, (NtOpFileSequence *) op);
break;
DEFAULT_FATAL(opType);
}
@ -329,10 +307,6 @@ void INtConnCompleteOperation (NtObject * ntObj) {
DWORD err = GetLastError();
switch (ntObj->ioType) {
case kNtFile:
INtFileDelete((NtFile *) ntObj);
break;
case kNtSocket:
INtSockDelete((NtSock *) ntObj);
break;
@ -393,7 +367,6 @@ void NtInitialize () {
);
}
INtFileInitialize();
INtSocketInitialize();
}
@ -403,7 +376,6 @@ void NtInitialize () {
// shut down the program is to simply let the atexit() handler take care of it.
void NtDestroy (unsigned exitThreadWaitMs) {
// cleanup modules that post completion notifications as part of their shutdown
INtFileStartCleanup();
INtSocketStartCleanup(exitThreadWaitMs);
// cleanup worker threads
@ -434,7 +406,6 @@ void NtDestroy (unsigned exitThreadWaitMs) {
s_waitEvent = 0;
}
INtFileDestroy();
INtSocketDestroy();
}