fix scheduler blocking by unblock proc

Sven Eberhardt 2009-12-31 18:10:55 +01:00
parent eee6c4ac4d
commit 8b4006da08
2 changed files with 2 additions and 2 deletions

View File

@ -2073,7 +2073,7 @@ bool C4NetIOUDP::SetBroadcast(const addr_t &addr, bool fSet) // (mt-safe)
int C4NetIOUDP::GetNextTick(int Now) // (mt-safe)
{
// maximum time: check interval
int iTiming = iNextCheck;
int iTiming = Max<int>(Now, iNextCheck);
// client timeouts (e.g. connection timeout)
CStdShareLock PeerListLock(&PeerListCSec);
for(Peer *pPeer = pPeerList; pPeer; pPeer = pPeer->Next)

View File

@ -165,7 +165,7 @@ private:
// Unblocker
class NoopNotifyProc : public CStdNotifyProc
{
public: virtual bool Execute(int, pollfd * readyfds) { return true; }
public: virtual bool Execute(int, pollfd * readyfds) { CheckAndReset(); return true; }
};
NoopNotifyProc Unblocker;