~ubuntu-branches/ubuntu/oneiric/open-iscsi/oneiric

« back to all changes in this revision

Viewing changes to usr/actor.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Zobel-Helas
  • Date: 2006-12-03 16:54:21 UTC
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20061203165421-udgd6i05ugt1byrh
Tags: upstream-2.0.730
ImportĀ upstreamĀ versionĀ 2.0.730

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
        switch(thread->state) {
84
84
        case ACTOR_SCHEDULED:
85
85
        case ACTOR_WAITING:
 
86
        case ACTOR_POLL_WAITING:
86
87
                log_debug(1, "deleting a scheduled/waiting thread!");
87
88
                remque(&thread->item);
88
89
                break;
246
247
                        log_debug(1, "actor_list: thread state corrupted!");
247
248
                remque(&thread->item);
248
249
                thread->state = ACTOR_NOTSCHEDULED;
 
250
                log_debug(7, "exec thread %08lx callback", (long)thread);
249
251
                thread->callback(thread->data);
250
 
                log_debug(7, "thread %08lx removed from actor_list",
251
 
                        (long)thread);
 
252
                log_debug(7, "thread removed\n");
252
253
        }
253
254
        poll_in_progress = 0;
254
255