SV DPI; accessing a task within a module in the C code

In reply to jolup:

It would help if you could show a complete skeleton of code that shows the procedural threading and scopes of your DPI application.