• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

Processor.cc

Go to the documentation of this file.
00001 /** @file
00002 
00003   A brief file description
00004 
00005   @section license License
00006 
00007   Licensed to the Apache Software Foundation (ASF) under one
00008   or more contributor license agreements.  See the NOTICE file
00009   distributed with this work for additional information
00010   regarding copyright ownership.  The ASF licenses this file
00011   to you under the Apache License, Version 2.0 (the
00012   "License"); you may not use this file except in compliance
00013   with the License.  You may obtain a copy of the License at
00014 
00015       http://www.apache.org/licenses/LICENSE-2.0
00016 
00017   Unless required by applicable law or agreed to in writing, software
00018   distributed under the License is distributed on an "AS IS" BASIS,
00019   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00020   See the License for the specific language governing permissions and
00021   limitations under the License.
00022  */
00023 
00024 /****************************************************************************
00025 
00026   Processor.cc
00027 
00028   Processor objects process requests which are placed in the Processor's
00029   input queue.  A Processor can contain multiple threads to process
00030   requests in the queue.  Requests in the queue are Continuations, which
00031   describe functions to run, and what to do when the function is complete
00032   (if anything).
00033 
00034   Basically, Processors should be viewed as multi-threaded schedulers which
00035   process request Continuations from their queue.  Requests can be made of
00036   a Processor either by directly adding a request Continuation to the queue,
00037   or more conveniently, by calling a method service call which synthesizes
00038   the appropriate request Continuation and places it in the queue.
00039 
00040 
00041  ****************************************************************************/
00042 
00043 #include "P_EventSystem.h"
00044 //////////////////////////////////////////////////////////////////////////////
00045 //
00046 //      Processor::Processor()
00047 //
00048 //      Constructor for a Processor.
00049 //
00050 //////////////////////////////////////////////////////////////////////////////
00051 
00052 Processor::Processor()
00053 {
00054 }                               /* End Processor::Processor() */
00055 
00056 
00057 //////////////////////////////////////////////////////////////////////////////
00058 //
00059 //      Processor::~Processor()
00060 //
00061 //      Destructor for a Processor.
00062 //
00063 //////////////////////////////////////////////////////////////////////////////
00064 
00065 Processor::~Processor()
00066 {
00067 }                               /* End Processor::~Processor() */
00068 
00069 //////////////////////////////////////////////////////////////////
00070 //
00071 //  Processor::create_thread()
00072 //
00073 //////////////////////////////////////////////////////////////////
00074 Thread *
00075 Processor::create_thread(int /* thread_index */)
00076 {
00077   ink_release_assert(!"Processor::create_thread -- no default implementation");
00078   return ((Thread *) 0);
00079 }
00080 
00081 //////////////////////////////////////////////////////////////////
00082 //
00083 //  Processor::get_thread_count()
00084 //
00085 //////////////////////////////////////////////////////////////////
00086 int
00087 Processor::get_thread_count()
00088 {
00089   return (0);
00090 }

Generated by  doxygen 1.7.1