Note on thread safety
git-svn-id: file:///home/svn/framework3/trunk@10597 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
9e01b0f4e5
commit
9489c2fa58
|
@ -463,6 +463,8 @@ module Socket
|
|||
# on Windows where ::Socket.pair is not implemented.
|
||||
# Note: OpenSSL requires native ruby sockets for its io.
|
||||
#
|
||||
# Note: Even though sub-threads are smashing the parent threads local, there
|
||||
# is no concurrent use of the same locals and this is safe.
|
||||
def self.tcp_socket_pair
|
||||
lsock = nil
|
||||
rsock = nil
|
||||
|
|
Loading…
Reference in New Issue