mirror of
https://gitee.com/openharmony/resourceschedule_ffrt
synced 2024-11-26 23:00:25 +00:00
fix linux complite problem
Signed-off-by: wangyulie <wanglieyu@126.com>
This commit is contained in:
parent
d5e4fd77db
commit
449fd3a95c
@ -20,6 +20,7 @@ mkdir build && cd build
|
||||
|
||||
cmake .. \
|
||||
-DFFRT_EXAMPLE=ON \
|
||||
|
||||
make -j ffrt
|
||||
make -j
|
||||
|
||||
|
@ -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 {
|
||||
|
||||
|
@ -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)) {
|
||||
|
@ -18,6 +18,7 @@
|
||||
|
||||
#include <map>
|
||||
#include <functional>
|
||||
#include <thread>
|
||||
#include "cpp/sleep.h"
|
||||
#include "sched/execute_ctx.h"
|
||||
namespace ffrt {
|
||||
|
Loading…
Reference in New Issue
Block a user