1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-16 00:00:02 +01:00
Commit graph

53 commits

Author SHA1 Message Date
Dennis Potter
72e627b327 Fixes , 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
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