/*
This file is part of Ingen.
Copyright 2007-2012 David Robillard
All changes in Ingen (both engine and client) occur as a result of * a small set of methods defined in terms of RDF and matching the * HTTP and WebDAV standards as closely as possible.
*/ namespace Ingen { namespace Server { void Event::pre_process() { ThreadManager::assert_thread(THREAD_PRE_PROCESS); assert(_pre_processed == false); _pre_processed = true; } void Event::execute(ProcessContext& context) { ThreadManager::assert_thread(THREAD_PROCESS); assert(_pre_processed); assert(!_executed); assert(_time <= context.end()); // Didn't get around to executing in time, jitter, oh well... if (_time < context.start()) _time = context.start(); _executed = true; } void Event::post_process() { ThreadManager::assert_not_thread(THREAD_PROCESS); } void Event::respond(Status status) { if (_request_client) { _request_client->response(_request_id, status); } } } // namespace Server } // namespace Ingen