feat update
All checks were successful
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Successful in 59s
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Successful in 59s
linux-x64-gcc / linux-gcc (push) Successful in 1m0s
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Successful in 1m8s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Successful in 1m14s
linux-hisiv500-gcc / linux-gcc-hisiv500 (push) Successful in 1m14s
linux-mips64-gcc / linux-gcc-mips64el (push) Successful in 1m29s
All checks were successful
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Successful in 59s
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Successful in 59s
linux-x64-gcc / linux-gcc (push) Successful in 1m0s
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Successful in 1m8s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Successful in 1m14s
linux-hisiv500-gcc / linux-gcc-hisiv500 (push) Successful in 1m14s
linux-mips64-gcc / linux-gcc-mips64el (push) Successful in 1m29s
This commit is contained in:
parent
e4b4c8d2c2
commit
bbdc7d6988
@ -1,3 +1,6 @@
|
||||
#ifndef ULIB_SRC_ULIB_CONCORRENCY_BARRIER_H_
|
||||
#define ULIB_SRC_ULIB_CONCORRENCY_BARRIER_H_
|
||||
|
||||
#include "ulib/concorrency/mutex.h"
|
||||
#include "ulib/concorrency/condition_variable.h"
|
||||
|
||||
@ -12,4 +15,7 @@ private:
|
||||
Mutex mutex_;
|
||||
ConditionVariable cond_;
|
||||
};
|
||||
|
||||
}// namespace ulib
|
||||
|
||||
#endif//ULIB_SRC_ULIB_CONCORRENCY_BARRIER_H_
|
||||
|
@ -1,7 +1,3 @@
|
||||
//
|
||||
// Created by Feng Zhang on 2023/12/12.
|
||||
//
|
||||
|
||||
#ifndef ULIB_SRC_ULIB_CONCORRENCY_CONDITION_VARIABLE_H_
|
||||
#define ULIB_SRC_ULIB_CONCORRENCY_CONDITION_VARIABLE_H_
|
||||
|
||||
|
@ -1,7 +1,3 @@
|
||||
//
|
||||
// Created by Feng Zhang on 2023/12/13.
|
||||
//
|
||||
|
||||
#ifndef ULIB_SRC_ULIB_CONCORRENCY_EVENT_H_
|
||||
#define ULIB_SRC_ULIB_CONCORRENCY_EVENT_H_
|
||||
|
||||
|
@ -1,7 +1,3 @@
|
||||
//
|
||||
// Created by Feng Zhang on 2023/12/12.
|
||||
//
|
||||
|
||||
#ifndef ULIB_SRC_ULIB_CONCORRENCY_MUTEX_H_
|
||||
#define ULIB_SRC_ULIB_CONCORRENCY_MUTEX_H_
|
||||
|
||||
@ -10,6 +6,7 @@ namespace ulib {
|
||||
namespace detail {
|
||||
class MutexImpl;
|
||||
}
|
||||
|
||||
class Mutex {
|
||||
public:
|
||||
Mutex();
|
||||
@ -28,16 +25,17 @@ private:
|
||||
|
||||
class MutexGuard {
|
||||
public:
|
||||
MutexGuard(Mutex& );
|
||||
MutexGuard(Mutex &);
|
||||
~MutexGuard();
|
||||
|
||||
private:
|
||||
MutexGuard(const MutexGuard&);
|
||||
MutexGuard& operator=(const MutexGuard&);
|
||||
MutexGuard(const MutexGuard &);
|
||||
MutexGuard &operator=(const MutexGuard &);
|
||||
|
||||
friend class ConditionVariable;
|
||||
Mutex& mutex_;
|
||||
Mutex &mutex_;
|
||||
};
|
||||
|
||||
} // namespace ulib
|
||||
}// namespace ulib
|
||||
|
||||
#endif//ULIB_SRC_ULIB_CONCORRENCY_MUTEX_H_
|
||||
|
@ -1,7 +1,3 @@
|
||||
//
|
||||
// Created by tqcq on 2023/12/5.
|
||||
//
|
||||
|
||||
#ifndef ULIB_SRC_LOG_LEVEL_H_
|
||||
#define ULIB_SRC_LOG_LEVEL_H_
|
||||
|
||||
@ -32,21 +28,22 @@ public:
|
||||
kALL = ULOG_LEVEL_ALL,
|
||||
kOFF = ULOG_LEVEL_OFF,
|
||||
kTrace = ULOG_LEVEL_TRACE,
|
||||
kDebug= ULOG_LEVEL_DEBUG,
|
||||
kDebug = ULOG_LEVEL_DEBUG,
|
||||
kInfo = ULOG_LEVEL_INFO,
|
||||
kWarn = ULOG_LEVEL_WARN,
|
||||
kError = ULOG_LEVEL_ERROR,
|
||||
kFatal = ULOG_LEVEL_FATAL,
|
||||
|
||||
TRACE = ULOG_LEVEL_TRACE,
|
||||
DEBUG= ULOG_LEVEL_DEBUG,
|
||||
DEBUG = ULOG_LEVEL_DEBUG,
|
||||
INFO = ULOG_LEVEL_INFO,
|
||||
WARN = ULOG_LEVEL_WARN,
|
||||
ERROR = ULOG_LEVEL_ERROR,
|
||||
FATAL = ULOG_LEVEL_FATAL
|
||||
};
|
||||
|
||||
static const char* ToString(int level) {
|
||||
static const char *ToString(int level)
|
||||
{
|
||||
switch (level) {
|
||||
case kTrace:
|
||||
return "TRACE";
|
||||
|
Loading…
x
Reference in New Issue
Block a user