From f83ab7222e8ef7b502a117b7ff5c4c3b6a40c789 Mon Sep 17 00:00:00 2001 From: Matt Miller Date: Tue, 26 Jul 2005 17:05:00 +0000 Subject: [PATCH] nono git-svn-id: file:///home/svn/incoming/trunk@2837 4d416f70-5f16-0410-b530-b9f4589650da --- documentation/ruby.nono | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/documentation/ruby.nono b/documentation/ruby.nono index 15546d3069..aebd16bd27 100644 --- a/documentation/ruby.nono +++ b/documentation/ruby.nono @@ -2,14 +2,14 @@ Things to *not* do in ruby that will break ruby threads. This list isn't complete, but it's things I've noticed while working on stuff: - select with no timeout + This will make a blocking select call that will block all other threads. - I'm going to write a select wrapper that will reduce timeouts to - lower values and just keep looping on select until the timeout - expires. + Use Rex::ThreadSafe::select - use sleep + This will block all threads. - I'll probably write a wrapper around this too. + Use Rex::ThreadSafe::select