1
0
Fork 0
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:
Georg Reinke 2017-05-12 11:35:21 +02:00
parent 959d8aa796
commit d17300e276
2 changed files with 1 additions and 3 deletions

View file

@ -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);

View file

@ -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)) {