Changeset 348 for Whitix/trunk/net
- Timestamp:
- 04/24/08 13:26:17 (7 months ago)
- Files:
-
- 1 modified
-
Whitix/trunk/net/local.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/trunk/net/local.c
r333 r348 157 157 info=(struct LocalSockInfo*)MemCacheAlloc(localInfoCache); 158 158 159 printf("info = %#X\n", info); 160 159 161 if (!info) 160 162 return -ENOMEM; … … 202 204 203 205 /* Wait for a connection. Should time out. */ 204 while (ListEmpty(&info->waitingSocks)) 205 ThrSchedule(); 206 WAIT_ON(info->waitQueue, !ListEmpty(&info->waitingSocks)); 206 207 207 208 client=ListEntry(info->waitingSocks.next,struct Socket, next); … … 252 253 ListAddTail(&sockBuff->next, &peer->recvPackets); 253 254 IrqRestoreFlags(iFlags); 255 254 256 WakeUp(&peerInfo->waitQueue); 255 257 … … 302 304 { 303 305 if (!ListEmpty(&info->waitingSocks)) 304 {305 306 item->revents|=POLL_IN; 306 }307 307 }else if (!ListEmpty(&socket->recvPackets)) 308 308 item->revents|=POLL_IN;
