]> gitweb.factorcode.org Git - factor.git/commitdiff
concurrency.mailboxes: break dependency on debugger vocab by creating concurrency...
authorSlava Pestov <slava@factorcode.org>
Mon, 1 Nov 2010 03:47:34 +0000 (22:47 -0500)
committerSlava Pestov <slava@factorcode.org>
Mon, 1 Nov 2010 03:47:34 +0000 (22:47 -0500)
basis/concurrency/mailboxes/debugger/authors.txt [new file with mode: 0755]
basis/concurrency/mailboxes/debugger/debugger.factor [new file with mode: 0755]
basis/concurrency/mailboxes/mailboxes.factor [changed mode: 0644->0755]

diff --git a/basis/concurrency/mailboxes/debugger/authors.txt b/basis/concurrency/mailboxes/debugger/authors.txt
new file mode 100755 (executable)
index 0000000..56f4654
--- /dev/null
@@ -0,0 +1 @@
+Slava Pestov\r
diff --git a/basis/concurrency/mailboxes/debugger/debugger.factor b/basis/concurrency/mailboxes/debugger/debugger.factor
new file mode 100755 (executable)
index 0000000..c222ab0
--- /dev/null
@@ -0,0 +1,8 @@
+! Copyright (C) 2010 Slava Pestov.
+! See http://factorcode.org/license.txt for BSD license.
+USING: debugger accessors debugger.threads kernel
+concurrency.mailboxes ;
+IN: concurrency.mailboxes.debugger
+
+M: linked-error error.
+    [ thread>> error-in-thread. ] [ error>> error. ] bi ;
old mode 100644 (file)
new mode 100755 (executable)
index 1638735..df73c36
@@ -2,8 +2,7 @@
 ! See http://factorcode.org/license.txt for BSD license.
 USING: dlists deques threads sequences continuations namespaces
 math quotations words kernel arrays assocs init system
-concurrency.conditions accessors debugger debugger.threads
-locals fry ;
+concurrency.conditions accessors locals fry vocabs.loader ;
 IN: concurrency.mailboxes
 
 TUPLE: mailbox { threads dlist } { data dlist } ;
@@ -77,9 +76,6 @@ M: mailbox mailbox-get-timeout block-if-empty data>> pop-back ;
 
 TUPLE: linked-error error thread ;
 
-M: linked-error error.
-    [ thread>> error-in-thread. ] [ error>> error. ] bi ;
-
 C: <linked-error> linked-error
 
 : ?linked ( message -- message )
@@ -95,3 +91,5 @@ M: linked-thread error-in-thread
 
 : spawn-linked-to ( quot name mailbox -- thread )
     <linked-thread> [ (spawn) ] keep ;
+
+{ "concurrency.mailboxes" "debugger" } "concurrency.mailboxes.debugger" require-when