Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Job does not sleep []
Job does not sleep [] [message #1082468] Thu, 08 August 2013 15:58
Stefan Snooc is currently offline Stefan SnoocFriend
Messages: 12
Registered: January 2013
Junior Member
I am about to implement a debugger for Eclipse. For this I want to use a; Objetct to handle the event when my debugging device reaches a breakpoint. In this case thread.resume() returns. Even though the thread is suspended, Job does not sleep:

protected IStatus run(IProgressMonitor monitor) {

  while (isTerminated() == false) {

    try {
      if (thread.isSuspended() == true) {
        System.out.println("program suspended");
        if(sleep() == true) { // wait for someone to wake me up
          System.out.println("job is sleeping");                            
        } else {
          System.out.println("cannot sleep");
      } else {
    } catch (DebugException e) {

  return Status.OK_STATUS;      

program suspended
cannot sleep
<repeat to infinity>

If anyone is on stackoverflow, then you can answer this question here and I gladly will mark your answer if it's correct.

Thank you
Previous Topic:Appearance preferences unable to find themes
Next Topic:Eclipse Update site not clearing older versions
Goto Forum:

Current Time: Mon May 21 18:54:36 GMT 2018

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

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

Back to the top