My Project
Public Types | Public Member Functions | Static Public Member Functions | List of all members
kernel_container Class Reference

Public Types

using buffer = RingBuffer< sched_cmd_t, Type::RingBufferType::Heap, false >
 

Public Member Functions

 kernel_container ()
 
 kernel_container (const std::size_t N)
 
 ~kernel_container ()
 
buffer & getInputQueue ()
 
buffer & getOutputQueue ()
 
std::size_t size ()
 

Static Public Member Functions

static void container_run (kernel_container &container)
 

Constructor & Destructor Documentation

kernel_container::kernel_container ( )

kernel_container - default constructor, initializes all above pointers.

kernelcontainer.cpp -

Author
: Jonathan Beard
Version
: Sun Mar 22 09:13:32 2015

Copyright 2015 Jonathan Beard

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at:

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

kernel_container::kernel_container ( const std::size_t  N)

kernel_container - constructor, initializes all above pointers.

Parameters
N- const std::size_t, default size of buffer
kernel_container::~kernel_container ( )

default destructor, cleans up all pointers

Member Function Documentation

void kernel_container::container_run ( kernel_container container)
static

container_run - function to be used by a thread which is called until the appropriate signal is sent (defined in sched_cmd_t.hpp.

Parameters
container- kernel_container&

clean-up buffer and recycle head of FIFO

just in case, a sanity check here

try these kernels again

after this it'll longjmp to the running state

kernel_container::buffer & kernel_container::getInputQueue ( )

getInput - get input FIFO

Returns
buffer&
kernel_container::buffer & kernel_container::getOutputQueue ( )

getOutputQueue

Returns
buffer&
std::size_t kernel_container::size ( )

size - returns the number of items currently scheduled for this container.

Returns
std::size_t, number of items

The documentation for this class was generated from the following files: