Print

Print


In src/XrdSys/XrdSysIOEvents.cc:

> @@ -1158,12 +1159,11 @@ void XrdSys::IOEvents::Poller::WakeUp()
>  // Send it off to wakeup the poller thread, but only if here is no wakeup in
>  // progress.
>  //
> -   toMutex.Lock();
> -   if (wakePend) toMutex.UnLock();
> -      else {wakePend = true;
> -            toMutex.UnLock();
> -            SendCmd(cmdbuff);
> -           }
> +   bool isWakePend = CPP_ATOMIC_LOAD(wakePend, std::memory_order_consume);

Note I eliminated the toMute locking here - I can't figure out what it'd be useful for.


Reply to this email directly or view it on GitHub.



Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1