86bddfa83a
shmem: whitespace cleanup
...
I like a bit more whitespace for readability
2017-06-15 15:07:42 +02:00
Georg Reinke
6265c39ce2
shmem: use one region for each direction
2017-06-14 13:00:43 +02:00
Georg Reinke
c5eb7c8e73
more whitespace fixes
2017-06-08 13:07:20 +02:00
Georg Reinke
2ba3c1cbe7
rework shmem interface to be "symmetric"
...
The notion of "VILLASnode" / "external program" is removed from the
interface. Now there's only a distiction regarding which process opened
the object first, and this is handled transparently by the functions.
This enables some new uses for the interface, for example connecting
two instances of VILLASnode or two instances of DPsim directly.
2017-06-08 12:43:24 +02:00
Georg Reinke
1b61d55cab
add close methods for queue and use them for shmem
2017-05-12 13:12:42 +02:00
Georg Reinke
d17300e276
remove unnecessary sample_get in shmem node
2017-05-12 11:52:39 +02:00
Georg Reinke
1067c66ab8
shmem node: copy samples when reading
2017-05-12 11:52:24 +02:00
49054eef9f
cleanup: removed trailing whitespaces in code
2017-05-05 19:24:16 +00:00
5be1853649
added GPL license to file headers
2017-04-27 12:56:43 +02:00
a81d1fc8de
Merge branch 'develop' into node-shm
2017-04-17 23:54:44 +02:00
Georg Reinke
5f540e58bc
even more documentation for shmem node
2017-04-17 19:00:15 +02:00
cee5575861
shm node: use similar settings as for paths: {in,out}size => queuelen, sample_values => samplelen
2017-04-15 22:47:24 +02:00
374f5bb557
shm node: fixed bug introduced by previous refactoring
2017-04-15 22:46:42 +02:00
db3d1477d1
shm node: renamed ‚cond_{in,out}‘ settings to ‚polling‘
2017-04-15 22:46:35 +02:00
4b9d62fd3e
shm node: changed description of node-type
2017-04-15 21:29:35 +02:00
f8713bb098
shm node: this node-type should work with ‚vectors‘ of samples too
2017-04-15 21:29:35 +02:00
ea6556bc8d
shm node: add ‚exec‘ setting to shmem_print()
2017-04-15 21:29:34 +02:00
d4ddad603b
changed signature of spawn()
2017-04-15 21:29:34 +02:00
b23000e2a8
several smaller cleanups: coding-style, variable names, white spaces, intermediate variables
2017-04-15 21:29:23 +02:00
4504fcc827
added file headers with author and copyright info
2017-04-15 21:28:28 +02:00
Georg Reinke
c135451db7
shm node: use pthread_barrier for synchronizing the start
2017-04-12 23:07:30 +02:00
Georg Reinke
385efa1313
shm node: add option to spawn external program on start
2017-04-12 17:07:59 +02:00
Georg Reinke
39d7c451fb
shm node: signal the other program if one exits
2017-04-12 14:38:18 +02:00
Georg Reinke
61b10ed4f1
move more information to shared part of shmem node
2017-04-07 13:27:10 +02:00
Georg Reinke
3a7af08799
move "external" part of shmem to separate files
2017-04-07 12:57:40 +02:00
Georg Reinke
c7e241cb2b
new wrapper struct around queue with POSIX CV's
2017-04-07 12:18:08 +02:00
Georg Reinke
ee809bd5c9
Merge branch 'develop' into node-shm
2017-04-06 12:12:56 +02:00
Georg Reinke
278a0afd45
shmem: fix init/destroy functions
2017-04-06 10:49:02 +02:00
Georg Reinke
66545fc4c7
new shmem node type
2017-04-05 12:52:21 +02:00