Differences

This shows you the differences between two versions of the page.

Link to this comparison view

public:howto:heartbeat [2009/04/17 03:15]
slonolom
public:howto:heartbeat [2009/04/17 03:38] (current)
slonolom
Line 11: Line 11:
  
 Heartbeats are periodical. If you set hearbeat frequency to twice per second and Synapse spends 2 seconds waiting for data, then heartbeat occurs four times, e.g. each half-second. Heartbeats are periodical. If you set hearbeat frequency to twice per second and Synapse spends 2 seconds waiting for data, then heartbeat occurs four times, e.g. each half-second.
 +===== What is it useful for? =====
  
-===== For what it is useful? ===== +You can use heartbeat to handle your GUI, for example. In a simple application, making communication calls from the main thread may freeze GUI. You can avoid that by processing GUI events in your heartbeat code.
- +
-You can use Heartbeats for handle your GUI, for example. In some easy applications you not need to call communication in separate thread. You can made your application smooth responsible by processing of your GUI in your Heartbeat code+
- +
-Additonally, each heratbeat testing //StopFlag// too! It can made your application very fast responsible to user 'cancel' action.+
  
 +Also, each heartbeat tests for //StopFlag//, which allows your application to instantly respond to user's //Cancel// action.
  
 ===== How to use it? ===== ===== How to use it? =====
public/howto/heartbeat.1239930909.txt.gz · Last modified: 2009/04/17 03:15 by slonolom
Driven by DokuWiki Recent changes RSS feed