mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 18:25:05 +00:00
The implementation of trace dump has little to do with task scheduling, so we should move it to a separate module for cleaner code. This requires exposing some emulator-specific task info, as defined in host_task.h. BUG=chrome-os-partner:19235 TEST=Pass all tests BRANCH=None Change-Id: Iba9bc0794a4e1dd4ddb92b98345162b398fa6a8d Signed-off-by: Vic (Chun-Ju) Yang <victoryang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/183238
27 lines
578 B
C
27 lines
578 B
C
/* Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
/* Emulator task scheduling module */
|
|
|
|
#ifndef __CROS_EC_HOST_TASK_H
|
|
#define __CROS_EC_HOST_TASK_H
|
|
|
|
#include <pthread.h>
|
|
|
|
#include "task.h"
|
|
|
|
/**
|
|
* Returns the thread corresponding to the task.
|
|
*/
|
|
pthread_t task_get_thread(task_id_t tskid);
|
|
|
|
/**
|
|
* Returns the ID of the active task, regardless of current thread
|
|
* context.
|
|
*/
|
|
task_id_t task_get_running(void);
|
|
|
|
#endif /* __CROS_EC_HOST_TASK_H */
|