From 37bd56f3301795e89294c048883324b0353237ef Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Thu, 20 Jun 2013 19:48:29 -0700 Subject: gras: work on goddamn done logic How blocks mark themselves done has been one of the most annoying things in this development. This done logic is only valuable for QA tests, it doesnt even exist in the practical use case. How it works now: * blocks mark done when sync inputs are done or all inputs are done * removed the force_done input config, its no longer needed * the wait() implementation gives blocks a grace period between an input becoming done and the block itself becoming done. After the grace period, the block is forced done. --- include/gras/block_config.hpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'include/gras') diff --git a/include/gras/block_config.hpp b/include/gras/block_config.hpp index c026cba..5e5c0cb 100644 --- a/include/gras/block_config.hpp +++ b/include/gras/block_config.hpp @@ -109,22 +109,6 @@ struct GRAS_API InputPortConfig * Default = 0. */ size_t preload_items; - - /*! - * Force this block done when input port is done. - * When the upstream feeding this port declares done, - * this block will mark done once upstream notifies. - * The primary usage is to modify the done logic - * for the purposes of unit test confiruability. - * - * If the force done option is false, the block will - * not mark done when this port's upstream is done. - * However, this block will mark done when all - * input ports are done, reguardless of this setting. - * - * Default = true. - */ - bool force_done; }; //! Configuration parameters for an output port -- cgit