File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
(defsystem " sento"
2
- :version " 3.1.1 "
2
+ :version " 3.3.0 "
3
3
:author " Manfred Bergmann"
4
4
:license " Apache-2"
5
5
:description " Actor framework featuring actors and agents for easy access to state and asynchronous operations."
73
73
(:file " config-test" )
74
74
(:file " wheel-timer-test" )
75
75
(:file " timeutils-test" )
76
+ (:file " bounded-queue-test" )
76
77
(:file " actor-cell-test" )
77
78
(:file " actor-mp-test" )
78
79
(:file " agent-test" )
Original file line number Diff line number Diff line change 56
56
57
57
(defmethod pushq ((self queue-bounded) element)
58
58
(with-slots (queue lock cvar fill-count max-items) self
59
- (when (>= fill-count max-items)
60
- (error ' queue-full-error :queue self))
61
59
(bt2 :with-lock-held (lock)
60
+ (when (>= fill-count max-items)
61
+ (error ' queue-full-error :queue self))
62
62
(cl-speedy-queue :enqueue element queue)
63
63
(incf fill-count)
64
64
(bt2 :condition-notify cvar))))
Original file line number Diff line number Diff line change 3
3
(:shadow # :! # :?)
4
4
(:import-from # :miscutils
5
5
# :assert-cond
6
- # :await-cond)
6
+ # :await-cond
7
+ # :filter)
7
8
(:import-from # :timeutils
8
9
# :ask-timeout)
9
10
(:import-from # :ac
513
514
(loop :repeat 10
514
515
:collect (ignore-errors
515
516
(tell actor " run" )))))
516
- (is (= 1 (length (mapcan (lambda (x) (if x ( list x) )) tells))))
517
- (is (= 9 (length (mapcan ( lambda (x) ( if ( null x) ( list x))) tells)))))
517
+ (is (= 1 (length (filter (lambda (x) (if x x )) tells))))
518
+ (is (= 9 (length (filter #' null tells)))))
518
519
(ac :shutdown sys))))
You can’t perform that action at this time.
0 commit comments