Shaun Hayward Posted January 1, 2013 Report Share Posted January 1, 2013 I was struggling to explain Notifiers to a C# developer the other day and it got me thinking... Do any of you know if there is a C# construct / class / whatever that offers the equivalent functionality of a LabVIEW Notifier? Quote Link to comment
Aristos Queue Posted January 2, 2013 Report Share Posted January 2, 2013 CancellationTokenSource and CancellationToken provide the same signaling functionality. I don't know of anything that has the data transfer built in, but you might look around in the same assembly. Quote Link to comment
Shaun Hayward Posted January 4, 2013 Author Report Share Posted January 4, 2013 Thanks! Quote Link to comment
Rolf Kalbermatter Posted January 7, 2013 Report Share Posted January 7, 2013 Wouldn't the System.Threading.AutoResetEvent and System.Threading.ManualResetEvent objects be similar, although in my opinion better known? And again they do not support an inherent data transfer but that could be of course added easily with subclassing. Quote Link to comment
mje Posted January 7, 2013 Report Share Posted January 7, 2013 ...again they do not support an inherent data transfer but that could be of course added easily with subclassing. Except the two you mention are both sealed classes. Quote Link to comment
Rolf Kalbermatter Posted January 14, 2013 Report Share Posted January 14, 2013 Except the two you mention are both sealed classes. Which would indeed require to wrap them instead of extending them. Wonder why they would be sealed. Seems to be the same as a Java class declared as final. Quote Link to comment
Aristos Queue Posted January 15, 2013 Report Share Posted January 15, 2013 I've been told that any thread safe class has to be sealed as anyone who inherits pretty much cannot be type safe because they cannot be given safe access to all the mutexes/locks. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.