Table of Contents
qthread_writeF, qthread_writeF_const - fills an address with data
#include
<qthread.h>
int
qthread_writeF (aligned_t * restrict dest, const aligned_t * restrict src);
int
qthread_writeF_const (aligned_t *dest, const aligned_t src);
These
functions are a cross between qthread_fill() and qthread_writeEF(). They
do not wait for memory to become empty, but perform the write and set the
state to full atomically (with respect to other FEB-based actions). Data
is read from src and written to dest.
The semantics of writeF are:
1 - data
is copied from src to dest
2 - dest’s FEB state gets set to "full"
This, and all other FEB-related
functions currently operate exclusively on aligned data.
On
success, the memory address dest is marked full, the address dest is filled
with the contents of src and 0 is returned. On error, a non-zero error code
is returned.
- ENOMEM
- Not enough memory could be allocated for bookkeeping
structures.
qthread_empty(3)
, qthread_fill(3)
, qthread_writeEF(3)
,
qthread_readFF(3)
, qthread_readFE(3)
, qthread_lock(3)
, qthread_unlock(3)
Table of Contents