use `SynchronizedCounter` in chameneos-redux
authorBlackMinou <romain.chanoir@viacesi.fr>
Mon, 8 May 2017 17:50:02 +0000 (13:50 -0400)
committerBlackMinou <romain.chanoir@viacesi.fr>
Wed, 31 May 2017 02:39:27 +0000 (22:39 -0400)
Signed-off-by: BlackMinou <romain.chanoir@viacesi.fr>

lib/actors/examples/chameneos-redux/chameneosredux.nit

index 9143e22..60361a8 100644 (file)
@@ -128,7 +128,7 @@ fun work(n, nb_colors : Int ) do
 
        for c in creatures do c.async.run
 
-       active_actors.is_empty
+       active_actors.wait
 
        var total = 0
        for c in creatures do