-! Copyright (C) 2008 Slava Pestov.\r
+! Copyright (C) 2008, 2010 Slava Pestov.\r
! See http://factorcode.org/license.txt for BSD license.\r
USING: kernel threads boxes accessors fry ;\r
IN: concurrency.exchangers\r
[ thread>> box> resume-with ] dip\r
] [\r
[ object>> >box ] keep\r
- '[ _ thread>> >box ] "exchange" suspend\r
+ [ self ] dip thread>> >box\r
+ "exchange" suspend\r
] if ;\r