index
:
libcamera/libcamera.git
master
libcamera official repository
git repository hosting on libcamera.org
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
include
/
meson.build
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
* Copyright (C) 2021, Google Inc.
*
* internal/fence.h - Synchronization fence
*/
#pragma once
#include <libcamera/base/class.h>
#include <libcamera/base/unique_fd.h>
namespace
libcamera
{
class
Fence
{
public
:
Fence
(
UniqueFD fd
);
bool
isValid
()
const
{
return
fd_
.
isValid
(); }
const
UniqueFD
&
fd
()
const
{
return
fd_
; }
UniqueFD
release
() {
return
std
::
move
(
fd_
); }
private
:
LIBCAMERA_DISABLE_COPY_AND_MOVE
(
Fence
)
UniqueFD fd_
;
};
}
/* namespace libcamera */