## modules/up/src/Core/sched/Job.cc

/* [<][>][^][v][top][bottom][index][help] */

## FUNCTIONS

This source file includes following functions.

1. Job
2. Job

       1 //
       2 // $Id: Job.cc,v 1.1.1.1 2000/03/10 16:32:22 engin Exp $
       3 //
       4 // Job.cc
       5 // Author(s): Ramesh Govindan <govindan@isi.edu>
       6
       7 #ifdef HAVE_CONFIG_H
       8 #include <config.h>
       9 #endif
      10
      11 #include "util/Types.hh"
      12 #include "util/Handler.hh"
      13 #include "util/Trail.hh"
      14
      15 #include "sched/Job.hh"
      16 #include "sched/Dispatcher.hh"
      17
      18 // File Local variables
      19 static TraceCode traceJob("job");
      20
      21 // The dispatcher performs the callbacks on jobs. Here we simply
      22 // construct a job with the appropriate handler.
      23
      24 Job::Job(Handler& h)
         /* [<][>][^][v][top][bottom][index][help] */
      25         : ListNode()
      26 {
      27     handler = h;
      28     dispatcher.jobs.append(this);
      29     TRACE(traceJob,
      30           "installing job with dispatcher\n");
      31 }
      32
      33 Job::~Job()
         /* [<][>][^][v][top][bottom][index][help] */
      34 {
      35     dispatcher.jobs.remove(this);
      36     TRACE(traceJob,
      37           "dequeuing and freeing job\n");
      38 }
      39
      40 //
      41 //  Copyright (c) 1994 by the University of Southern California.
      42 //  All rights reserved.
      43 //
      44 //  Permission to use, copy, modify, and distribute this software and
      45 //  its documentation in source and binary forms for lawful
      46 //  non-commercial purposes and without fee is hereby granted, provided
      47 //  that the above copyright notice appear in all copies and that both
      48 //  the copyright notice and this permission notice appear in supporting
      49 //  documentation, and that any documentation, advertising materials,
      50 //  and other materials related to such distribution and use acknowledge
      51 //  that the software was developed by the University of Southern
      52 //  California and/or Information Sciences Institute.
      53 //  The name of the University of Southern California may not
      54 //  be used to endorse or promote products derived from this software
      55 //  without specific prior written permission.
      56 //
      57 //  THE UNIVERSITY OF SOUTHERN CALIFORNIA DOES NOT MAKE ANY REPRESENTATIONS
      58 //  ABOUT THE SUITABILITY OF THIS SOFTWARE FOR ANY PURPOSE.  THIS SOFTWARE IS
      59 //  PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES,
      60 //  INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
      61 //  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND
      62 //  NON-INFRINGEMENT.
      63 //
      64 //  IN NO EVENT SHALL USC, OR ANY OTHER CONTRIBUTOR BE LIABLE FOR ANY
      65 //  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES, WHETHER IN CONTRACT,
      66 //  TORT, OR OTHER FORM OF ACTION, ARISING OUT OF OR IN CONNECTION WITH,
      67 //  THE USE OR PERFORMANCE OF THIS SOFTWARE.
      68 //
      69 //  Questions concerning this software should be directed to
      70 //  info-ra@isi.edu.
      71 //

/* [<][>][^][v][top][bottom][index][help] */