Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Question regarding Eclipse Jobs
Question regarding Eclipse Jobs [message #333394] Tue, 09 December 2008 01:17 Go to next message
Eclipse UserFriend
Hi all,

How can i check if my current thread own a particular ISchedulingRule?
I searched through the API's of JobManager but couldnt find one.

Thanks and regards,
Keshav Veerapaneni.
Re: Question regarding Eclipse Jobs [message #333399 is a reply to message #333394] Tue, 09 December 2008 11:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

I don't think there is any.

I've asked about this before and I was told that I shouldn't have to
worry about this. That my job should of been created with all of the
scheduling rules it should ever need. And if not, then the code needs to
be changed so that it is started with the correct set. That this is how
scheduling rules are supposed to be used. That they aren't to be
dynamically added/removed as needed. If they were dynamically
added/removed then there is a possibility of deadlocks.

Keshavrao wrote:
> Hi all,
>
> How can i check if my current thread own a particular ISchedulingRule?
> I searched through the API's of JobManager but couldnt find one.
>
> Thanks and regards,
> Keshav Veerapaneni.
>

--
Thanks,
Rich Kulp
Re: Question regarding Eclipse Jobs [message #333418 is a reply to message #333399] Wed, 10 December 2008 09:20 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Actually i am acquring schedulingrules using JobManger.beginRule and
i want to call the endrule only if my thread owns the rule, will it be
possible to do this?


Thanks and regards,
Keshav Veerapaneni.
Re: Question regarding Eclipse Jobs [message #333426 is a reply to message #333418] Wed, 10 December 2008 12:40 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Nope. That was exactly what I was trying to do. And the answer was "You
should already know if you have it".

Keshavrao wrote:
> Hi,
>
> Actually i am acquring schedulingrules using JobManger.beginRule
> and i want to call the endrule only if my thread owns the rule, will it
> be possible to do this?
>
>
> Thanks and regards,
> Keshav Veerapaneni.
>

--
Thanks,
Rich Kulp
Previous Topic:Midlet and ERCP
Next Topic:Where is PDE repo
Goto Forum:
  


Current Time: Fri Apr 25 18:35:03 EDT 2025

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

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

Back to the top