Note on thread safety

git-svn-id: file:///home/svn/framework3/trunk@10597 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
HD Moore 2010-10-08 04:55:06 +00:00
parent 9e01b0f4e5
commit 9489c2fa58
1 changed files with 2 additions and 0 deletions

View File

@ -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