]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/io/backend/windows/nt/nt.factor
threads: simplify 'suspend' combinator
[factor.git] / basis / io / backend / windows / nt / nt.factor
index de29f33ee612d20bfb84222e1fc07eba6f4ee7fe..5cbe7b3ad94155f0630331b5ad9cb725d55d8076 100644 (file)
@@ -40,8 +40,8 @@ M: winnt add-completion ( win32-handle -- )
 : twiddle-thumbs ( overlapped port -- bytes-transferred )
     [
         drop
-        [ >c-ptr pending-overlapped get-global set-at ] curry "I/O" suspend
-        {
+        [ self ] dip >c-ptr pending-overlapped get-global set-at
+        "I/O" suspend {
             { [ dup integer? ] [ ] }
             { [ dup array? ] [
                 first dup eof?