-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathactors-globals.lisp
37 lines (23 loc) · 964 Bytes
/
actors-globals.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
(in-package :actors-globals)
;; ----------------------------------------------------------------------------
(defconstant +nbr-execs+ 4)
(defconstant +max-pool+ 100)
(defvar *executive-processes* nil)
(defvar *executive-counter* 0)
(defconstant +heartbeat-interval+ 1)
(defconstant +maximum-age+ 3)
(defvar *heartbeat-timer* nil)
(defvar *last-heartbeat* 0)
;; --------------------------------------------------------------------
(defvar *actor-ready-queue* (mp:make-mailbox))
(defvar *current-actor* nil)
(defun current-actor ()
*current-actor*)
;; --------------------------------------------------------------------
(defvar *actor-directory-manager* #'lw:do-nothing)
;; --------------------------------------------------------------------
(defun blind-print (cmd &rest items)
(declare (ignore cmd))
(dolist (item items)
(print item)))
(defvar *shared-printer-actor* #'blind-print)