As Noam answers, it should work, but doeing strange things is searching for trouble.What is the problem to let the same thread destroying the socket? Also if you destroy the socket in another thread what about the referenct to it in the other thread?

Met vriendelijke groeten,
Wilfried Mestdagh

Op 12-05-16 om 10:58 schreef Noam Weissman:
Hi,

I think that If you protect what you do with semaphores it is possible but its
better to handle it all under one thread.

BR,
Noam.

________________________________________
From: TWSocket <twsocket-boun...@lists.elists.org> on behalf of Daniel Mauric 
<dmau...@gmail.com>
Sent: Thursday, May 12, 2016 11:12 AM
To: twsocket@lists.elists.org
Subject: [twsocket] Creating Socket in one thread, destroying in another ?

Hi everyone,

Will creating a socket in one thread and destroying it in another cause any
problems ?

Regards,
Daniel
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to