SafirSDK / safir-sdk-core

Safir SDK Core - For Truly Distributed Systems
http://www.safirsdkcore.com
GNU General Public License v3.0
9 stars 3 forks source link

Add a timed dispatch #71

Open SafirSDKImport opened 11 years ago

SafirSDKImport commented 11 years ago

In order for an application to work correctly regarding its timing requirements, and prevent starvation, it is important to be able to indicate that no more callbacks from the Dob should be dispatched.

Today, the only way to achieve this is to call ExitDispatch in a callback. The drawback with this solution is that the application must implement its own mechanism to determine when to call ExitDispatch. Also, the ExitDispatch calls must potentially be applied to each and every callback. It is probably much easier for the application to relate its Dispatch call to some maximum dispatch time.

Add a Dispatch call where the caller could indicate that the dispatching should be interrupted after some given amount of elapsed time.

Note that the Dispatch can only be interrupted between callbacks so the actual return time depends on the time it takes to execute a callback.

Reported by: anderswiden

Original SourceForge Ticket #72: safir/tickets/72

SafirSDKImport commented 11 years ago

ticket [#44] is a duplicate of this (but I'm closing 44, since this ticket has more info)

Original comment by: DonOregano

SafirSDKImport commented 10 years ago

Original comment by: DonOregano