libnx  v4.7.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);
Definition: fence.h:6
Definition: ioctl.h:125
u32 Result
Function error code result type.
Definition: types.h:44
int32_t s32
32-bit signed integer.
Definition: types.h:27
uint32_t u32
32-bit unsigned integer.
Definition: types.h:21