From 8b83e894d3b8859703304936b1b21f3d3ff6d211 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 6 Aug 2015 03:08:42 +0200 Subject: Use new locking subsystem to ensure integrity --- private.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'private.h') diff --git a/private.h b/private.h index f15317e..a0034c8 100644 --- a/private.h +++ b/private.h @@ -4,6 +4,7 @@ #include #include #include +#include #include "ipecamera.h" #include "env.h" @@ -163,6 +164,13 @@ struct ipecamera_s { pcilib_context_t event; UfoDecoder *ipedec; + pcilib_lock_t *run_lock; /**< Lock protecting global camera operation */ + pcilib_lock_t *stream_lock; /**< Lock protecting stream/next_frame operations */ + pcilib_lock_t *trigger_lock; /**< Lock protecting stream/next_frame operations */ + int run_locked; /**< Flag indicating if camera is currently locked */ + int stream_locked; /**< Flag indicating if camera is currently locked */ + int trigger_locked; /**< Flag indicating if camera is currently locked */ + char *data; ipecamera_pixel_t *image; size_t size; -- cgit v1.2.3