NEST main@caf0ae8
 
Loading...
Searching...
No Matches
secondary_event_impl.h
Go to the documentation of this file.
1/*
2 * secondary_event_impl.h
3 *
4 * This file is part of NEST.
5 *
6 * Copyright (C) 2004 The NEST Initiative
7 *
8 * NEST is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * NEST is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with NEST. If not, see <http://www.gnu.org/licenses/>.
20 *
21 */
22
23#include "secondary_event.h"
24
25// Includes from nestkernel
26#include "kernel_manager.h"
27
28namespace nest
29{
30
31template < typename DataType, typename Subclass >
32void
34{
36
37 // This is done during connection model cloning, which happens thread-parallel.
38 // To not risk trashing the set data structure, we let only master register the
39 // new synid. This is not performance critical and avoiding collisions elsewhere
40 // would be more difficult, so we do it here in a master section.
41#pragma omp master
42 {
43 supported_syn_ids_.insert( synid );
44 }
45#pragma omp barrier
46}
47
48template < typename DataType, typename Subclass >
49void
51{
53 coeff_length_ = coeff_length;
54}
55
56} // namespace nest
static void set_coeff_length(const size_t coeff_length)
Definition secondary_event_impl.h:50
void add_syn_id(const synindex synid) override
This function adds the ids of connection models that use this event type.
Definition secondary_event_impl.h:33
void assert_thread_parallel() const
Fails if NEST is not in thread-parallel section.
Definition vp_manager.h:200
void assert_single_threaded() const
Fails if NEST is in thread-parallel section.
Definition vp_manager.h:192
VPManager vp_manager
Definition kernel_manager.h:234
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33
KernelManager & kernel()
Definition kernel_manager.h:311
size_t synindex
For enumerations of synapse types.
Definition nest_types.h:115