×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

Difference between revisions of "ThreadSafe" - MultiCharts
Open main menu

Difference between revisions of "ThreadSafe"

(Created page with " Category:DLL Calling")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 +
Declares the function imported from DLL as thread-safe.
 +
 +
It will increase the performance of calculation and optimization of the studies that use external DLLs.
 +
 +
== Usage ==
 +
<syntaxhighlight>ThreadSafe</syntaxhighlight>
 +
 +
== Notes ==
 +
It is not recommended to apply ThreadSafe attribute to the functions exported from elkit32.dll (for example FindAddress_).
 +
 +
== Example ==
 +
<syntaxhighlight>DEFINEDLLFUNC: ThreadSafe, "user32.dll", Void, "MessageBeep", Int; </syntaxhighlight>
 +
 +
Will declare MessageBeep function of user32.dll as thread-safe.
 +
 +
<br>
 +
<br>
  
 
[[Category:DLL Calling]]
 
[[Category:DLL Calling]]

Latest revision as of 19:58, 14 March 2012

Declares the function imported from DLL as thread-safe.

It will increase the performance of calculation and optimization of the studies that use external DLLs.

Usage

ThreadSafe

Notes

It is not recommended to apply ThreadSafe attribute to the functions exported from elkit32.dll (for example FindAddress_).

Example

DEFINEDLLFUNC: ThreadSafe, "user32.dll", Void, "MessageBeep", Int;

Will declare MessageBeep function of user32.dll as thread-safe.