mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-07-25 13:11:58 +00:00
fpsi: mutexless mode
This commit is contained in:
@@ -22,6 +22,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <stdatomic.h>
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
#include "types.h"
|
||||
@@ -36,8 +38,8 @@ typedef struct {
|
||||
char *name;
|
||||
bool with_meta;
|
||||
uint accum;
|
||||
ldf ts;
|
||||
uint current;
|
||||
atomic_llong ts;
|
||||
atomic_uint current;
|
||||
us_fpsi_meta_s meta;
|
||||
pthread_mutex_t mutex;
|
||||
} us_fpsi_s;
|
||||
|
||||
Reference in New Issue
Block a user