Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Can I use ISchedulingRule as a explicit lock?
Can I use ISchedulingRule as a explicit lock? [message #913224] Sat, 15 September 2012 02:34
jin lan is currently offline jin lanFriend
Messages: 3
Registered: September 2012
Junior Member
If I have this code:

class Sample{
    private Object _lock=new Object();
    public void someMethod(){

Then I wanna use it in this way:

class Sample{
    private ISchedulingRule _lock=new SomeSchedulingRule();
    public void someMethod(){

Can I do it? And should I do it?
The most important thing, does IJobManager.beginRule and IJobManager.endRule provide memory visibility?
Previous Topic:Broken links on site
Next Topic:can't deactivate context on workbench window
Goto Forum:

Current Time: Thu Nov 26 05:11:47 GMT 2015

Powered by FUDForum. Page generated in 0.01741 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software