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/mutex.h"
|
||||||
#include "ulib/concorrency/condition_variable.h"
|
#include "ulib/concorrency/condition_variable.h"
|
||||||
|
|
||||||
@ -12,4 +15,7 @@ private:
|
|||||||
Mutex mutex_;
|
Mutex mutex_;
|
||||||
ConditionVariable cond_;
|
ConditionVariable cond_;
|
||||||
};
|
};
|
||||||
|
|
||||||
}// namespace ulib
|
}// 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_
|
#ifndef ULIB_SRC_ULIB_CONCORRENCY_CONDITION_VARIABLE_H_
|
||||||
#define 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_
|
#ifndef ULIB_SRC_ULIB_CONCORRENCY_EVENT_H_
|
||||||
#define 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_
|
#ifndef ULIB_SRC_ULIB_CONCORRENCY_MUTEX_H_
|
||||||
#define ULIB_SRC_ULIB_CONCORRENCY_MUTEX_H_
|
#define ULIB_SRC_ULIB_CONCORRENCY_MUTEX_H_
|
||||||
|
|
||||||
@ -10,6 +6,7 @@ namespace ulib {
|
|||||||
namespace detail {
|
namespace detail {
|
||||||
class MutexImpl;
|
class MutexImpl;
|
||||||
}
|
}
|
||||||
|
|
||||||
class Mutex {
|
class Mutex {
|
||||||
public:
|
public:
|
||||||
Mutex();
|
Mutex();
|
||||||
@ -28,16 +25,17 @@ private:
|
|||||||
|
|
||||||
class MutexGuard {
|
class MutexGuard {
|
||||||
public:
|
public:
|
||||||
MutexGuard(Mutex& );
|
MutexGuard(Mutex &);
|
||||||
~MutexGuard();
|
~MutexGuard();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
MutexGuard(const MutexGuard&);
|
MutexGuard(const MutexGuard &);
|
||||||
MutexGuard& operator=(const MutexGuard&);
|
MutexGuard &operator=(const MutexGuard &);
|
||||||
|
|
||||||
friend class ConditionVariable;
|
friend class ConditionVariable;
|
||||||
Mutex& mutex_;
|
Mutex &mutex_;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace ulib
|
}// namespace ulib
|
||||||
|
|
||||||
#endif//ULIB_SRC_ULIB_CONCORRENCY_MUTEX_H_
|
#endif//ULIB_SRC_ULIB_CONCORRENCY_MUTEX_H_
|
||||||
|
@ -1,7 +1,3 @@
|
|||||||
//
|
|
||||||
// Created by tqcq on 2023/12/5.
|
|
||||||
//
|
|
||||||
|
|
||||||
#ifndef ULIB_SRC_LOG_LEVEL_H_
|
#ifndef ULIB_SRC_LOG_LEVEL_H_
|
||||||
#define ULIB_SRC_LOG_LEVEL_H_
|
#define ULIB_SRC_LOG_LEVEL_H_
|
||||||
|
|
||||||
@ -32,36 +28,37 @@ public:
|
|||||||
kALL = ULOG_LEVEL_ALL,
|
kALL = ULOG_LEVEL_ALL,
|
||||||
kOFF = ULOG_LEVEL_OFF,
|
kOFF = ULOG_LEVEL_OFF,
|
||||||
kTrace = ULOG_LEVEL_TRACE,
|
kTrace = ULOG_LEVEL_TRACE,
|
||||||
kDebug= ULOG_LEVEL_DEBUG,
|
kDebug = ULOG_LEVEL_DEBUG,
|
||||||
kInfo = ULOG_LEVEL_INFO,
|
kInfo = ULOG_LEVEL_INFO,
|
||||||
kWarn = ULOG_LEVEL_WARN,
|
kWarn = ULOG_LEVEL_WARN,
|
||||||
kError = ULOG_LEVEL_ERROR,
|
kError = ULOG_LEVEL_ERROR,
|
||||||
kFatal = ULOG_LEVEL_FATAL,
|
kFatal = ULOG_LEVEL_FATAL,
|
||||||
|
|
||||||
TRACE = ULOG_LEVEL_TRACE,
|
TRACE = ULOG_LEVEL_TRACE,
|
||||||
DEBUG= ULOG_LEVEL_DEBUG,
|
DEBUG = ULOG_LEVEL_DEBUG,
|
||||||
INFO = ULOG_LEVEL_INFO,
|
INFO = ULOG_LEVEL_INFO,
|
||||||
WARN = ULOG_LEVEL_WARN,
|
WARN = ULOG_LEVEL_WARN,
|
||||||
ERROR = ULOG_LEVEL_ERROR,
|
ERROR = ULOG_LEVEL_ERROR,
|
||||||
FATAL = ULOG_LEVEL_FATAL
|
FATAL = ULOG_LEVEL_FATAL
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char* ToString(int level) {
|
static const char *ToString(int level)
|
||||||
|
{
|
||||||
switch (level) {
|
switch (level) {
|
||||||
case kTrace:
|
case kTrace:
|
||||||
return "TRACE";
|
return "TRACE";
|
||||||
case kDebug:
|
case kDebug:
|
||||||
return "DEBUG";
|
return "DEBUG";
|
||||||
case kInfo:
|
case kInfo:
|
||||||
return "INFO";
|
return "INFO";
|
||||||
case kWarn:
|
case kWarn:
|
||||||
return "WARN";
|
return "WARN";
|
||||||
case kError:
|
case kError:
|
||||||
return "ERROR";
|
return "ERROR";
|
||||||
case kFatal:
|
case kFatal:
|
||||||
return "FATAL";
|
return "FATAL";
|
||||||
default:
|
default:
|
||||||
return "UNKNOWN";
|
return "UNKNOWN";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user