You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using socket.bind() to implement a mutex, and protect data from begin accessed by multiple thread at the same time.
It works well on Mac, but on Windows 10 I see that multiple threads are binding successfully at the same time (before the first thread closes the socket)
I see that the bind() implementation uses the socket.core's bind() method.
Is there a known issue on Windows?
Should use the socket.core's bind() directly?
The text was updated successfully, but these errors were encountered:
I'm afraid I do not use or even have access to a Windows machine to test this or suggest a fix. There are some Windows users around so hopefully somebody else can chime in.
If it does turn out there is a problem with the library on Windows I'd be happy to facilitate a PR getting merged if somebody in the know contributes a fix.
Hi,
I am using socket.bind() to implement a mutex, and protect data from begin accessed by multiple thread at the same time.
It works well on Mac, but on Windows 10 I see that multiple threads are binding successfully at the same time (before the first thread closes the socket)
I see that the
bind()
implementation uses thesocket.core
'sbind()
method.socket.core
'sbind()
directly?The text was updated successfully, but these errors were encountered: