mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
remove unnecessary sample_get in shmem node
This commit is contained in:
parent
959d8aa796
commit
d17300e276
2 changed files with 1 additions and 3 deletions
|
@ -78,7 +78,7 @@ struct sample {
|
|||
};
|
||||
|
||||
/** Request \p cnt samples from memory pool \p p and initialize them.
|
||||
* This will leave the reference count of the sample to zero.
|
||||
* The reference count will already be set to 1.
|
||||
* Use the sample_get() function to increase it. */
|
||||
int sample_alloc(struct pool *p, struct sample *smps[], int cnt);
|
||||
|
||||
|
|
|
@ -203,8 +203,6 @@ int shmem_write(struct node *n, struct sample *smps[], unsigned cnt)
|
|||
memcpy(shared_smps[i]->data, smps[i]->data, SAMPLE_DATA_LEN(len));
|
||||
|
||||
shared_smps[i]->length = len;
|
||||
|
||||
sample_get(shared_smps[i]);
|
||||
}
|
||||
|
||||
if (atomic_load_explicit(&shm->shared->ext_stopped, memory_order_relaxed)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue