libnx  v4.2.0
fence.h
1 #pragma once
2 #include "ioctl.h"
3 
4 typedef nvioctl_fence NvFence;
5 
6 typedef struct {
7  u32 num_fences;
8  NvFence fences[4];
10 
11 Result nvFenceInit(void);
12 void nvFenceExit(void);
13 
14 Result nvFenceWait(NvFence* f, s32 timeout_us);
15 
16 static inline void nvMultiFenceCreate(NvMultiFence* mf, const NvFence* fence) {
17  mf->num_fences = 1;
18  mf->fences[0] = *fence;
19 }
20 
21 Result nvMultiFenceWait(NvMultiFence* mf, s32 timeout_us);
s32
int32_t s32
32-bit signed integer.
Definition: types.h:27
nvioctl_fence
Definition: ioctl.h:120
u32
uint32_t u32
32-bit unsigned integer.
Definition: types.h:21
NvMultiFence
Definition: fence.h:6
Result
u32 Result
Function error code result type.
Definition: types.h:44