Property TLGenericTextFilter.TTLGenericTextFilter.SynchronizeType
(Automated Syncronization with Documentation) |
(Automated Syncronization with Documentation) |
||
(5 intermediate revisions by one user not shown) | |||
Line 10: | Line 10: | ||
=== Delphi: === | === Delphi: === | ||
<code> | <code> | ||
− | '''property''' SynchronizeType : TSLSynchronizeType '''read''' | + | '''property''' SynchronizeType : TSLSynchronizeType '''read''' GetSynchronizeType '''write''' SetSynchronizeType '''default''' [[Enum item SLTypes.TSLSynchronizeType.stNone|stNone]]; |
</code> | </code> | ||
=== C++ Builder: === | === C++ Builder: === | ||
<code> | <code> | ||
− | '''__property''' TSLSynchronizeType SynchronizeType = { '''read'''= | + | '''__property''' TSLSynchronizeType SynchronizeType = { '''read'''=GetSynchronizeType, '''write'''=SetSynchronizeType, '''default'''=[[Enum item SLTypes.TSLSynchronizeType.stNone|stNone]] }; |
</code> | </code> | ||
Line 29: | Line 29: | ||
− | [[Enum item | + | [[Enum item SLTypes.TSLSynchronizeType.stNone|stNone]] - does not synchronize. It will execute the callback |
event directly from the SignalLab thread. You should not | event directly from the SignalLab thread. You should not | ||
access any resources used by other threads or any GUI without | access any resources used by other threads or any GUI without | ||
Line 36: | Line 36: | ||
− | [[Enum item | + | [[Enum item SLTypes.TSLSynchronizeType.stQueue|stQueue]] - does synchronize and queue all the buffers with the |
main thread. It is safe to access any main thread resources | main thread. It is safe to access any main thread resources | ||
safely, including any GUI, however it will use a lot of | safely, including any GUI, however it will use a lot of | ||
Line 45: | Line 45: | ||
− | [[Enum item | + | [[Enum item SLTypes.TSLSynchronizeType.stSingleBuffer|stSingleBuffer]] - queues only the latest buffer. Any other |
buffer will be dropped. This is used when you want to display | buffer will be dropped. This is used when you want to display | ||
any GUI information related with the buffer, and don't want | any GUI information related with the buffer, and don't want | ||
Line 54: | Line 54: | ||
Delphi example: | Delphi example: | ||
<pre> | <pre> | ||
− | <c>TLGenericText1.SynchronizeType := [[Enum item | + | <c>TLGenericText1.SynchronizeType := [[Enum item SLTypes.TSLSynchronizeType.stSingleBuffer|stSingleBuffer]];</c> |
</pre> | </pre> | ||
C++ Builder example: | C++ Builder example: | ||
<pre> | <pre> | ||
− | <c>TLGenericText1->SynchronizeType = [[Enum item | + | <c>TLGenericText1->SynchronizeType = [[Enum item SLTypes.TSLSynchronizeType.stSingleBuffer|stSingleBuffer]];</c> |
</pre> | </pre> | ||
Visual C++(MFC) example: | Visual C++(MFC) example: | ||
<pre> | <pre> | ||
− | <c>TLGenericText1.SynchronizeType = [[Enum item | + | <c>TLGenericText1.SynchronizeType = [[Enum item SLTypes.TSLSynchronizeType.stSingleBuffer|stSingleBuffer]];</c> |
</pre> | </pre> |
Latest revision as of 00:10, 26 June 2013
This is a Beta Read Only version of this page. Please review and send recommendations to mitov@mitov.com. We will enable the editing as soon as we are happy with the overall Wiki site.
Class: TTLGenericTextFilter
Contents |
Syntax
Delphi:
property SynchronizeType : TSLSynchronizeType read GetSynchronizeType write SetSynchronizeType default stNone;
C++ Builder:
__property TSLSynchronizeType SynchronizeType = { read=GetSynchronizeType, write=SetSynchronizeType, default=stNone };
Summary
Type of thread buffer synchronization.
Description
Use this property to specify the type of thread buffer
synchronization for the generic filters.
stNone - does not synchronize. It will execute the callback event directly from the SignalLab thread. You should not access any resources used by other threads or any GUI without critical sections or other means of protection.
stQueue - does synchronize and queue all the buffers with the main thread. It is safe to access any main thread resources safely, including any GUI, however it will use a lot of memory. Indeed once when it queue couple of hundred buffers, it will stop dropping buffers in order to prevent running out of memory.
stSingleBuffer - queues only the latest buffer. Any other buffer will be dropped. This is used when you want to display any GUI information related with the buffer, and don't want to do that for each buffer, but just for the most recent one.
Delphi example:
<c>TLGenericText1.SynchronizeType := [[Enum item SLTypes.TSLSynchronizeType.stSingleBuffer|stSingleBuffer]];</c>
C++ Builder example:
<c>TLGenericText1->SynchronizeType = [[Enum item SLTypes.TSLSynchronizeType.stSingleBuffer|stSingleBuffer]];</c>
Visual C++(MFC) example:
<c>TLGenericText1.SynchronizeType = [[Enum item SLTypes.TSLSynchronizeType.stSingleBuffer|stSingleBuffer]];</c>
Visual C++/CLI example:
<c>genericText1->SynchronizeType = Mitov::SignalLab::SynchronizeType::SingleBuffer;</c>
C# example:
<c>genericText1.SynchronizeType = Mitov.SignalLab.SynchronizeType.SingleBuffer;</c>
VB example:
<c>GenericText1.SynchronizeType = Mitov.SignalLab.SynchronizeType.SingleBuffer</c>