/alps/ipecamera

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/ipecamera

« back to all changes in this revision

Viewing changes to private.h

  • Committer: Suren A. Chilingaryan
  • Date: 2015-08-06 01:08:42 UTC
  • Revision ID: csa@suren.me-20150806010842-pdy8up1ro75gcd1a
Use new locking subsystem to ensure integrity

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
#include <pthread.h>
5
5
#include <pcilib/model.h>
6
6
#include <pcilib/debug.h>
 
7
#include <pcilib/locking.h>
7
8
#include "ipecamera.h"
8
9
#include "env.h"
9
10
 
163
164
    pcilib_context_t event;
164
165
    UfoDecoder *ipedec;
165
166
 
 
167
    pcilib_lock_t *run_lock;            /**< Lock protecting global camera operation */
 
168
    pcilib_lock_t *stream_lock;         /**< Lock protecting stream/next_frame operations */
 
169
    pcilib_lock_t *trigger_lock;        /**< Lock protecting stream/next_frame operations */
 
170
    int run_locked;                     /**< Flag indicating if camera is currently locked */
 
171
    int stream_locked;                  /**< Flag indicating if camera is currently locked */
 
172
    int trigger_locked;                 /**< Flag indicating if camera is currently locked */
 
173
 
166
174
    char *data;
167
175
    ipecamera_pixel_t *image;
168
176
    size_t size;