[libcamera-devel] libcamera: base: Move thread_annotations to private
diff mbox series

Message ID 20230704190849.3650613-1-kieran.bingham@ideasonboard.com
State Accepted
Commit fae9c8f0f20e6fafe23e10b133cace9dc72e8c5a
Headers show
Series
  • [libcamera-devel] libcamera: base: Move thread_annotations to private
Related show

Commit Message

Kieran Bingham July 4, 2023, 7:08 p.m. UTC
The libcamera thread annotations are for internal use only and are
not part of any public api. Mark the header accordingly by including the
private.h header guard.

Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
---
 include/libcamera/base/thread_annotations.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Laurent Pinchart July 4, 2023, 7:16 p.m. UTC | #1
Hi Kieran,

Thank you for the patch.

On Tue, Jul 04, 2023 at 08:08:49PM +0100, Kieran Bingham via libcamera-devel wrote:
> The libcamera thread annotations are for internal use only and are
> not part of any public api. Mark the header accordingly by including the

s/api/API/

> private.h header guard.
> 
> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  include/libcamera/base/thread_annotations.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/include/libcamera/base/thread_annotations.h b/include/libcamera/base/thread_annotations.h
> index e81929f674d7..25b3c7b6cf92 100644
> --- a/include/libcamera/base/thread_annotations.h
> +++ b/include/libcamera/base/thread_annotations.h
> @@ -7,6 +7,8 @@
>  
>  #pragma once
>  
> +#include <libcamera/base/private.h>
> +
>  /*
>   * Enable thread safety attributes only with clang.
>   * The attributes can be safely erased when compiling with other compilers.
Umang Jain July 4, 2023, 7:17 p.m. UTC | #2
Hi Kieran,

On 7/4/23 9:08 PM, Kieran Bingham via libcamera-devel wrote:
> The libcamera thread annotations are for internal use only and are
> not part of any public api. Mark the header accordingly by including the
> private.h header guard.
>
> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>

Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>

> ---
>   include/libcamera/base/thread_annotations.h | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/include/libcamera/base/thread_annotations.h b/include/libcamera/base/thread_annotations.h
> index e81929f674d7..25b3c7b6cf92 100644
> --- a/include/libcamera/base/thread_annotations.h
> +++ b/include/libcamera/base/thread_annotations.h
> @@ -7,6 +7,8 @@
>   
>   #pragma once
>   
> +#include <libcamera/base/private.h>
> +
>   /*
>    * Enable thread safety attributes only with clang.
>    * The attributes can be safely erased when compiling with other compilers.

Patch
diff mbox series

diff --git a/include/libcamera/base/thread_annotations.h b/include/libcamera/base/thread_annotations.h
index e81929f674d7..25b3c7b6cf92 100644
--- a/include/libcamera/base/thread_annotations.h
+++ b/include/libcamera/base/thread_annotations.h
@@ -7,6 +7,8 @@ 
 
 #pragma once
 
+#include <libcamera/base/private.h>
+
 /*
  * Enable thread safety attributes only with clang.
  * The attributes can be safely erased when compiling with other compilers.