Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse RT (runtime) » Can I use ISchedulingRule as a explicit lock?
Can I use ISchedulingRule as a explicit lock? [message #913090] Fri, 14 September 2012 18:56
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(){

The most important thing does IJobManager.beginRule and IJobManager.endRule provide memory visibility?
Previous Topic:Classloader not find the classes in a JAR into a plugin project at runtime
Next Topic:OSGi complaint
Goto Forum:

Current Time: Fri Oct 23 12:39:58 GMT 2020

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

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

Back to the top