fix linux complite problem

Signed-off-by: wangyulie <wanglieyu@126.com>
This commit is contained in:
wangyulie 2024-06-27 10:30:02 +08:00
parent d5e4fd77db
commit 449fd3a95c
4 changed files with 7 additions and 0 deletions

View File

@ -20,6 +20,7 @@ mkdir build && cd build
cmake .. \
-DFFRT_EXAMPLE=ON \
make -j ffrt
make -j

View File

@ -19,7 +19,10 @@
#ifdef ASYNC_STACKTRACE
#include "dfx/async_stack/ffrt_async_stack.h"
#endif
#ifdef FFRT_HITRACE_ENABLE
using namespace OHOS::HiviewDFX;
#endif
namespace ffrt {

View File

@ -189,8 +189,10 @@ void TaskTsdRunDtors(ffrt::CPUEUTask* task)
pthread_tsd_run_dtors();
SwitchTsdAddrToThread(task);
}
#endif
} // namespace
#ifdef FFRT_TASK_LOCAL_ENABLE
void TaskTsdDeconstruct(ffrt::CPUEUTask* task)
{
if (!IsTaskLocalEnable(task)) {

View File

@ -18,6 +18,7 @@
#include <map>
#include <functional>
#include <thread>
#include "cpp/sleep.h"
#include "sched/execute_ctx.h"
namespace ffrt {