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

This commit is contained in:
tqcq 2023-12-26 23:09:54 +08:00
parent e4b4c8d2c2
commit bbdc7d6988
5 changed files with 31 additions and 38 deletions

View File

@ -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_

View File

@ -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_

View File

@ -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_

View File

@ -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();
@ -30,6 +27,7 @@ class MutexGuard {
public:
MutexGuard(Mutex &);
~MutexGuard();
private:
MutexGuard(const MutexGuard &);
MutexGuard &operator=(const MutexGuard &);

View File

@ -1,7 +1,3 @@
//
// Created by tqcq on 2023/12/5.
//
#ifndef ULIB_SRC_LOG_LEVEL_H_
#define ULIB_SRC_LOG_LEVEL_H_
@ -46,7 +42,8 @@ public:
FATAL = ULOG_LEVEL_FATAL
};
static const char* ToString(int level) {
static const char *ToString(int level)
{
switch (level) {
case kTrace:
return "TRACE";