FL SDK Thread Safe Sharing Between Multiple Plugin instances

Discuss how to use FL Studio

Return to “FL Studio Users Forum (Looptalk)”

Forum rules
Please read them here.
[You can only see part of this thread as you are not logged in to the forums]
flamingRedDingo
Sun Feb 10, 2019 2:52 am

x

FL SDK Thread Safe Sharing Between Multiple Plugin instances

So I'd like to write a plugin or two that share data between several instances.

so what are the rules for locking globals in C++ in a plugin DLL?

the UI thread is a given, but is the TCPPFruityPlug derived plugin class constructed on that thread context? or some other thread context?

also, i assume the Dispatcher is called from the UI thread - please correct me if I'm wrong.

and now as far as the Render/Effect routines:

i assume that they are all called on a mixing thread if the plugin is thread safe, but what if it isn't? Do all instances of a plugin that are not thread safe share the same mixing thread?

bottom line is i need to know where to lock my globals.

reflex
Site Admin
Mon Feb 11, 2019 3:47 pm

x

Re: FL SDK Thread Safe Sharing Between Multiple Plugin instances

FP_PlugClass.h has information about the thread...



Return to “FL Studio Users Forum (Looptalk)”