summaryrefslogtreecommitdiffstats
path: root/src/server/events/Connect.cpp
AgeCommit message (Collapse)AuthorFilesLines
2023-09-22Use a regular unique_ptr for compiled graphsDavid Robillard1-2/+2
Since these are always swapped by events which already have the ability to delete things after execution (by deleting them along with the event itself after processing), we can avoid the complexity and overhead of Raul::managed_ptr here by swapping the old graph for the new, retaining the owning reference to the old CompiledGraph in the event.
2023-02-03Suppress/fix new warnings in clang-tidy 15David Robillard1-2/+2
2022-12-14Concatenate nested namespacesDavid Robillard1-6/+2
2022-08-18Use a consistent style for empty bracesDavid Robillard1-2/+1
2022-08-18Use default member initializationDavid Robillard1-2/+0
2020-12-15Clean up includes in core and serverDavid Robillard1-0/+4
2020-08-03Clean up includesDavid Robillard1-0/+5
As directed by include-what-you-use. Unfortunately, it is still confused by quite a few things, but this gets a lot closer to a clean report, and at least makes the output more tolerable to manually check.
2020-08-02Remove std::shared_ptr aliasDavid Robillard1-9/+10
2020-08-02Remove redundant pointer get() callsDavid Robillard1-1/+1
2020-08-02Use consistent naming for context parametersDavid Robillard1-3/+3
2020-08-02Use std::make_sharedDavid Robillard1-0/+1
2019-12-08Cleanup: Work around clang-tidy bugDavid Robillard1-3/+3
For some reason clang-tidy thinks that insert can modify the value of tail_block, so this triggers a null dereference warning. If that were true, it would be true with things swapped around like this as well, but it makes the warning go away at least.
2019-12-08Cleanup: Use "auto" to avoid repeating type namesDavid Robillard1-2/+2
2019-12-08Cleanup: Avoid parameter copying overheadDavid Robillard1-4/+4
2019-12-08Cleanup: Use std::make_sharedDavid Robillard1-1/+1
2019-03-09Clean up includes and forward declarationsDavid Robillard1-4/+8
2018-09-23Use lowercase namespace namesDavid Robillard1-8/+8
2017-12-25Use nullptrDavid Robillard1-2/+2
2017-12-16Make events take the corresponding message directlyDavid Robillard1-22/+19
2017-12-16Make CompiledGraph::compile a free functionDavid Robillard1-2/+1
2017-03-20Improve arc list efficiencyDavid Robillard1-1/+1
2017-02-15Move static path stuff to its own headerDavid Robillard1-2/+2
2017-02-12Use smart pointers to handle real-time memory disposalDavid Robillard1-12/+9
2016-12-14Fix real-time issues with buffer allocationDavid Robillard1-4/+3
2016-12-13Remove virtual inheritance from Port hierarchyDavid Robillard1-3/+2
This was confusing stoat, and is questionable design anyway. The OutputPort functionality has been moved to PortImpl, which is a basic port with buffers suitable for use as an output, and is overridden by InputPort and DuplexPort where necessary.
2016-10-14Fix potential store deadlockDavid Robillard1-1/+1
2016-10-02Defer graph compilation in atomic bundlesDavid Robillard1-4/+7
This avoids situations like compiling a graph hundreds of times when it is loaded because it has hundreds of nodes and each event triggers a re-compile. This speeds things up dramatically, but exacerbates the theoretical problem of there not being enough time in a cycle to execute a bundle. As far as I can tell, the execute phase of events is very fast, so hundreds or thousands can easily run in a tiny fraction of the process cycle, but this still needs resolution to be truly hard real-time. What probably needs to happen is that all context and state used to process is moved to CompiledGraph and nodes do not access their own fields at all, but have some references into the CompiledGraph. This way, a compiled graph is separate from its "source code", and an old one could continue to be run while a new one is beng applied across several cycles.
2016-10-02Use more efficient std::lock_guard where possibleDavid Robillard1-1/+1
2016-10-02Add parallelism-aware graph traversalDavid Robillard1-10/+24
2016-09-11Remove last vestiges of multiple run contextsDavid Robillard1-1/+1
2016-09-11Clarify connect and disconnect logicDavid Robillard1-0/+1
2016-07-30Add undo supportDavid Robillard1-1/+7
2015-10-26Use a set for providers and dependantsDavid Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5790 a436a847-0d15-0410-975c-d299462d15a1
2015-10-24Zero-copy to/from driver ports where possibleDavid Robillard1-6/+10
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5778 a436a847-0d15-0410-975c-d299462d15a1
2015-04-04Update copyright dates.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5653 a436a847-0d15-0410-975c-d299462d15a1
2015-02-06Remove gthread dependency from engine.David Robillard1-20/+14
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5533 a436a847-0d15-0410-975c-d299462d15a1
2014-01-12Combine port buffers and set state into a single voice object.David Robillard1-4/+4
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5309 a436a847-0d15-0410-975c-d299462d15a1
2013-06-09Inherit certain properties from ports connected to patch ports.David Robillard1-0/+11
This is a bit too hard-edged at present, but does the right thing when building a patch from scratch at least. Something needs to be done about removing the properties, but this is hard for outputs since the arcs aren't keyed that way. The main problem here is that Ardour barfs on plugins with MIDI input for audio tracks, so if you *ever* connect the control input to a MIDI anything, it will stick and not work in an Ardour audio track. Maybe it should be just implemented for inputs as a stop gap... git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5136 a436a847-0d15-0410-975c-d299462d15a1
2013-01-12Remove Raul::SharedPtr and switch to std::shared_ptr.David Robillard1-7/+7
Use project local short type aliases for shared_ptr and friends. Move Raul::Disposable and Raul::Manageable into Raul::Maid. Use sets to store machina nodes and edges to avoid O(n) searches. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4939 a436a847-0d15-0410-975c-d299462d15a1
2013-01-12Fix connection bug introduced in r4918 (fix #875).David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4936 a436a847-0d15-0410-975c-d299462d15a1
2013-01-11Use type safe enumerations.David Robillard1-10/+10
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4918 a436a847-0d15-0410-975c-d299462d15a1
2012-12-29"edge" => "arc".David Robillard1-11/+11
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4897 a436a847-0d15-0410-975c-d299462d15a1
2012-12-21Strip trailing whitespace.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4883 a436a847-0d15-0410-975c-d299462d15a1
2012-12-21Fix memory leaks.David Robillard1-2/+1
Add missing library dependencies. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4880 a436a847-0d15-0410-975c-d299462d15a1
2012-12-21Add Broadcaster::Transfer for scoped recursion-safe reply bundling.David Robillard1-0/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4868 a436a847-0d15-0410-975c-d299462d15a1
2012-08-19GraphObject => NodeDavid Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4722 a436a847-0d15-0410-975c-d299462d15a1
2012-08-19Patch => GraphDavid Robillard1-19/+19
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4721 a436a847-0d15-0410-975c-d299462d15a1
2012-08-18Node => BlockDavid Robillard1-19/+19
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4720 a436a847-0d15-0410-975c-d299462d15a1
2012-08-15Rewrite Raul::Maid and eliminate Raul:List.David Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4702 a436a847-0d15-0410-975c-d299462d15a1
2012-08-14Replace use of old Raul Table stuff with std::map.David Robillard1-11/+13
Move most Store functionality into Ingen::Store and eliminate EngineStore. Much cleaner delete and move implementations. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4696 a436a847-0d15-0410-975c-d299462d15a1