Changeset 664
- Timestamp:
- Mar 10, 2010, 1:27:13 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/corelib/kernel/qeventdispatcher_pm.cpp
r659 r664 443 443 // add the socket back to the set 444 444 int sockfd = notifier->socket(); 445 fd_set *set = instance->setForType(notifier->type()); 446 FD_SET(sockfd, set); 445 FD_SET(sockfd, instance->setForType(notifier->type())); 447 446 instance->updateMaxSockFd(sockfd, Add); 448 447 // inform the select thread that this socket may be included … … 745 744 for (Sockets::const_iterator it = sockets.constBegin(); 746 745 it != sockets.constEnd(); ++it) { 747 maxSockfd = qMax(toSocket(it.key()), maxSockfd); 746 int fd = toSocket(it.key()); 747 if (FD_ISSET(fd, &readS) || FD_ISSET(fd, &writeS) || 748 FD_ISSET(fd, &exS)) 749 maxSockfd = qMax(fd, maxSockfd); 748 750 } 749 751 } … … 812 814 } 813 815 if (isSet) { 814 fd_set *set = setForType(type); 815 FD_CLR(sockfd, set); 816 FD_CLR(sockfd, setForType(type)); 816 817 updateMaxSockFd(sockfd, Remove); 817 818 WinPostMsg(it.value().second, WM_U_SEM_SELECT, MPFROMLONG(it.key()), 0);
Note:
See TracChangeset
for help on using the changeset viewer.