kunzmi / managedCuda

ManagedCUDA aims an easy integration of NVidia's CUDA in .net applications written in C#, Visual Basic or any other .net language.
Other
440 stars 79 forks source link

Add property [IsDisposed] for CudaContext & CudaRuntimeCompiler #100

Open dinggeonly opened 3 years ago

dinggeonly commented 3 years ago

Add property [IsDisposed] for CudaContext & CudaRuntimeCompiler, to make it is possible to know whether the object is disposed.

kunzmi commented 3 years ago

Hi, sorry for the late answer. Do you know if this property is common for the IDisposible interface? Should we add it to all IDisposible classes?

Cheers, Michael

dinggeonly commented 3 years ago

@kunzmi Q:Should we add it to all IDisposible classes? A:In my opinion,it's unnecessary to change other calsses,unless we need to know the status of it.