|
cfitsTK
|
Go to the source code of this file.
Functions | |
| int_fast8_t | init_ImageStreamIO () |
ImageStreamIO - 1. READ / WRITE STREAM | |
| int | ImageStreamIO_createIm (IMAGE *image, const char *name, long naxis, uint32_t *size, uint8_t atype, int shared, int NBkw) |
| Create shared memory image stream. More... | |
| long | ImageStreamIO_read_sharedmem_image_toIMAGE (const char *name, IMAGE *image) |
| Read / connect to existing shared memory image stream. More... | |
ImageStreamIO - 2. MANAGE SEMAPHORES | |
| int | ImageStreamIO_createsem (IMAGE *image, long NBsem) |
| Create shmim semaphores. More... | |
| long | ImageStreamIO_sempost (IMAGE *image, long index) |
| Post all shmim semaphores. More... | |
| long | ImageStreamIO_sempost_excl (IMAGE *image, long index) |
| Post all shmim semaphores except one. More... | |
| long | ImageStreamIO_sempost_loop (IMAGE *image, long index, long dtus) |
| Post shmim semaphores at regular time interval. More... | |
| long | ImageStreamIO_semwait (IMAGE *image, long index) |
| Wait for semaphore. More... | |
| long | ImageStreamIO_semflush (IMAGE *image, long index) |
| Flush all semaphores of a shmim. More... | |
| int ImageStreamIO_createIm | ( | IMAGE * | image, |
| const char * | name, | ||
| long | naxis, | ||
| uint32_t * | size, | ||
| uint8_t | atype, | ||
| int | shared, | ||
| int | NBkw | ||
| ) |
Create shared memory image stream.
| int ImageStreamIO_createsem | ( | IMAGE * | image, |
| long | NBsem | ||
| ) |
Create shmim semaphores.
Create semaphore of a shmim
| [in] | image | IMAGE* pointer to shmim |
| [in] | NBsem | number of semaphores to be created |
| long ImageStreamIO_read_sharedmem_image_toIMAGE | ( | const char * | name, |
| IMAGE * | image | ||
| ) |
Read / connect to existing shared memory image stream.
| long ImageStreamIO_semflush | ( | IMAGE * | image, |
| long | index | ||
| ) |
Flush all semaphores of a shmim.
Flush shmim semaphore
| [in] | image | IMAGE* pointer to shmim |
| [in] | index | semaphore index flush all semaphores if index<0 |
| long ImageStreamIO_sempost | ( | IMAGE * | image, |
| long | index | ||
| ) |
Post all shmim semaphores.
Posts semaphore of a shmim if index < 0, post all semaphores
| [in] | image | IMAGE* pointer to shmim |
| [in] | index | semaphore index index of semaphore to be posted if index=-1, post all semaphores |
| long ImageStreamIO_sempost_excl | ( | IMAGE * | image, |
| long | index | ||
| ) |
Post all shmim semaphores except one.
Posts all semaphores of a shmim except one
| [in] | image | IMAGE* pointer to shmim |
| [in] | index | semaphore index index of semaphore to be excluded |
| long ImageStreamIO_sempost_loop | ( | IMAGE * | image, |
| long | index, | ||
| long | dtus | ||
| ) |
Post shmim semaphores at regular time interval.
Posts all semaphores of a shmim at regular time intervals
| [in] | image | IMAGE* pointer to shmim |
| [in] | index | semaphore index is =-1, post all semaphores |
| [in] | dtus | time interval [us] |
| long ImageStreamIO_semwait | ( | IMAGE * | image, |
| long | index | ||
| ) |
Wait for semaphore.
Wait on a shmim semaphore
| [in] | image | IMAGE* pointer to shmim |
| [in] | index | semaphore index |
| int_fast8_t init_ImageStreamIO | ( | ) |