Threading fiasco problem C#
<p>I'm working on integrating a single-threaded API that does not have any multi-threaded support into a multi-threaded program. I would like to keep all APIinteraction on the main thread and do other stuff on other threads. However the program I am working with has a Producer-Consumer oriented threading design(which I can't modify).</p>

<p>Is there a way I can make threads switch to main thread when I want? Or some other way to get it working?</p>

<p>I apologize for not being able to express the problem clearer</p>
