aboutsummaryrefslogtreecommitdiff
path: root/test/common_plat/validation/api/thread/thread.h
blob: d511c9259d717c21275bb32c1e6f2d394733afa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* Copyright (c) 2015, Linaro Limited
 * All rights reserved.
 *
 * SPDX-License-Identifier:     BSD-3-Clause
 */

#ifndef _ODP_TEST_THREAD_H_
#define _ODP_TEST_THREAD_H_

#include <odp_api.h>
#include <odp_cunit_common.h>

/* test functions: */
#ifndef TEST_THRMASK
#define TEST_THRMASK
#endif
#include "mask_common.h"
void thread_test_odp_cpu_id(void);
void thread_test_odp_thread_id(void);
void thread_test_odp_thread_count(void);
void thread_test_odp_thrmask_control(void);
void thread_test_odp_thrmask_worker(void);

/* test arrays: */
extern odp_testinfo_t thread_suite[];

/* test registry: */
extern odp_suiteinfo_t thread_suites[];

/* main test program: */
int thread_main(int argc, char *argv[]);

#endif