My Project
|
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) |
kernel_container::kernel_container | ( | ) |
kernel_container - default constructor, initializes all above pointers.
kernelcontainer.cpp -
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.
N | - const std::size_t, default size of buffer |
kernel_container::~kernel_container | ( | ) |
default destructor, cleans up all pointers
|
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.
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
kernel_container::buffer & kernel_container::getOutputQueue | ( | ) |
getOutputQueue
std::size_t kernel_container::size | ( | ) |
size - returns the number of items currently scheduled for this container.