class: Win32OperatingSystem
authorStefan Vogel <sv@exept.de>
Wed, 29 Jan 2014 17:08:17 +0100
changeset 15923 6bc82606b914
parent 15922 af9427f065b7
child 15924 73f0da45e706
class: Win32OperatingSystem changed: #setBlocking:on: fix return value
Win32OperatingSystem.st
--- a/Win32OperatingSystem.st	Wed Jan 29 14:35:26 2014 +0100
+++ b/Win32OperatingSystem.st	Wed Jan 29 17:08:17 2014 +0100
@@ -11318,14 +11318,15 @@
 !
 
 setBlocking:aBoolean on:fd
-    "{ Pragma: +optSpace }"
-
     "set/clear the blocking attribute - if set (which is the default)
      a read on the fileDescriptor will block until data is available.
      If cleared, a read operation will immediately return with a value of
-     nil."
-
-    ^ self "/ primitiveFailed
+     nil.
+
+     Ignored in windows. Windows calls operate in their own thread,
+     so non-blocking mode doesn't make sense."
+
+    ^ true 
 !
 
 waitForMultipleObjects:fdOrHandleArray withTimeout:millis
@@ -17487,15 +17488,15 @@
 !Win32OperatingSystem class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/Win32OperatingSystem.st,v 1.488 2013-12-17 16:47:26 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Win32OperatingSystem.st,v 1.489 2014-01-29 16:08:17 stefan Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libbasic/Win32OperatingSystem.st,v 1.488 2013-12-17 16:47:26 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Win32OperatingSystem.st,v 1.489 2014-01-29 16:08:17 stefan Exp $'
 !
 
 version_SVN
-    ^ '$Id: Win32OperatingSystem.st,v 1.488 2013-12-17 16:47:26 cg Exp $'
+    ^ '$Id: Win32OperatingSystem.st,v 1.489 2014-01-29 16:08:17 stefan Exp $'
 
 ! !