Quantcast
Channel: Keep main program waiting
Viewing all articles
Browse latest Browse all 4

Keep main program waiting

$
0
0

Ok, I already changed base of timer component, so its provide with new methods, the Stop() which was incompletely available, TryStop(int timeout) and Terminate()

The Stop, will wait for lock object to become available, then lock, shut down the thread, and unlock object.

The try stop, try to lock and then perform stop operation, otherwise don't stop thread...

the Terminate , wont check for lock object, and abort the thread directly, but in the end in a try block check to unlock the lock object...

no i can have a direcet method with order timer to stop, and wont interrupt the events jobs, so all i need is to perform, onStart and onStop operation for my console, can any one help?


Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>