e2c8859d79
use new state STATE_STOPPING to trigger shutdown
2019-02-11 16:42:38 +01:00
1740df596b
separated in/out signal descriptors
2019-02-06 13:14:38 +01:00
c23d1979df
shmem: overwrite signal definition of received samples
2019-01-23 00:48:38 +01:00
8f7c8ae71e
update copyright year to 2019
2019-01-13 00:42:39 +01:00
d18d786801
refactor: list_* -> vlist_*
2019-01-07 10:28:55 +01:00
70cc94b5c7
refactor: warn() => warning() due to name collision with libc
2018-11-30 21:37:52 +01:00
ef91faafac
shmem: add new mode setting which superseeds the polling setting
2018-10-20 17:12:39 +02:00
d35971c26c
refactor: update copyright years
2018-08-20 18:40:03 +02:00
e4fedaf4c5
shmem: adapt to new signal code and separate node-type configuration into in/out sections
2018-08-20 18:28:40 +02:00
0240d5b2c4
refactor: json_foreach: index -> i
2018-08-13 00:00:10 +02:00
1f16b4bf07
refactor: {sample,signal}_{put,get} -> {sample,signal}_{incref,decref}
2018-08-13 00:00:09 +02:00
Dennis Potter
72e627b327
Fixes #166 , all node interfaces are modified
...
The functions now look like this
int node_read(struct node *n, struct sample *smps[], unsigned cnt, unsigned *release);
int node_write(struct node *n, struct sample *smps[], unsigned cnt, unsigned *release);
This commit enables nodes to control how many samples will
be released by the framework through *release
2018-07-11 18:14:29 +02:00
Dennis Potter
6150a36411
Changed all node_write() functions
2018-07-07 17:48:07 +02:00
Dennis Potter
4663f55e4b
Changed all node_read() functions to support a *cnt instead of cnt
2018-07-07 17:07:45 +02:00
dccdd67242
shmem: use proper naming convention
2018-06-15 14:24:04 +02:00
a535ec5abc
node: separated node configuratio for send / receive side
2018-05-24 09:04:41 +02:00
8f61d4f2a9
shmem: fix some issues with the exec setting
2018-05-23 14:59:48 +02:00
070a76b153
shmem: improve log messages
2018-05-23 14:59:48 +02:00
c99c95a558
shmem: issue a warning if the remote side of the interface was closed
2018-05-07 18:03:31 +02:00
bc110a9c24
shmem: show reason for failing
2018-05-07 15:54:44 +02:00
0017d1bcb1
refactor: change include prefix
2018-02-04 16:40:52 +01:00
702dc34052
c++: add proper casts from void *
2017-10-20 11:54:00 +02:00
80ee8d786d
refactored sample by adding more *_many() functions
2017-10-16 08:09:07 +02:00
ce5f4e5a60
some refactoring in json parsing
2017-10-16 08:09:07 +02:00
5e620942ce
adding new field "flags" to struct sample
2017-09-16 15:04:59 +02:00
6d495c1a35
add new bitmask to samples to indicate which fields are valid
2017-09-04 14:28:55 +02:00
415cd0de09
refactor: whitespace changes only
2017-09-02 14:20:38 +02:00
e7666be1ef
move 'samplelen' setting from per path to per node configuration
2017-08-31 09:31:19 +02:00
8fdcaa3c4e
add support for node_fd() to more node types
2017-08-30 13:30:31 +02:00
5d0ba771c6
Merge branch 'node-test' into develop
...
# Conflicts:
# include/villas/api/session.h
# lib/api.c
# lib/super_node.c
# lib/web.c
2017-08-27 18:44:03 +02:00
434fe6dbd6
replaced libconfig by jansson for parsing the configuration (huge commit)
2017-08-03 00:19:27 +02:00
Georg Reinke
37fc5df254
add polling loop inside shmem_read
2017-07-28 12:23:16 +02:00
b59a989278
cleanup trailing whitespaces
2017-07-25 12:07:06 +02:00
8287f049ef
some refactoring
2017-07-02 23:58:56 +02:00
2b913d4d69
tests: fix valgrind warnings
2017-07-02 23:57:03 +02:00
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