Initial commit: TXW82x FPV v2.7.0.7-42229 SDK + project sources
This commit is contained in:
28
sdk/include/osal/condv.h
Normal file
28
sdk/include/osal/condv.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef __OS_CONDV_H
|
||||
#define __OS_CONDV_H
|
||||
#include "osal/atomic.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct os_condv {
|
||||
uint32 magic;
|
||||
atomic_t waitings;
|
||||
void *sema;
|
||||
};
|
||||
typedef struct os_condv os_condv_t;
|
||||
|
||||
int32 os_condv_init(os_condv_t *cond);
|
||||
|
||||
int32 os_condv_broadcast(os_condv_t *cond);
|
||||
int32 os_condv_signal(os_condv_t *cond);
|
||||
|
||||
int32 os_condv_del(os_condv_t *cond);
|
||||
int32 os_condv_wait(os_condv_t *cond, os_mutex_t *mutex, uint32 tmo_ms);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user