mardi 21 juin 2016

How to enforce a mutex on a delegate

I'm trying to create a generic method that accepts a delegate. The sole purpose of the method is to ensure whatever code block, the delegate, you pass to it, is only accessed by one thread at a time. Is there a clean pattern to achieve this?

Aucun commentaire:

Enregistrer un commentaire