> --- /dev/null
> +++ b/helper/include/odp/helper/platform/linux-generic/threads_extn.h
This file and these functions are not odp-linux specific. Those depend mainly
on Linux and somewhat on ODP, but should not depend at all on the odp-linux
implementation.
Should it be moved to here:
/helper/include/odp/helper/linux/threads.h
-Petri
> @@ -0,0 +1,112 @@
> +/* Copyright (c) 2016, Linaro Limited
> + * All rights reserved.
> + *
> + * SPDX-License-Identifier: BSD-3-Clause
> + */
> +
> +/**
> + * @file
> + *
> + * ODP Linux helper extension API
> + *
> + * This file is an optional helper to odp.h APIs. These functions are
> provided
> + * to ease common setups in a Linux system. User is free to implement the
> same
> + * setups in otherways (not via this API).
> + */
> +
> +#ifndef ODPH_LINUX_EXT_H_
> +#define ODPH_LINUX_EXT_H_
> +
> +#include <odp/helper/threads.h>
> +
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
> +/** @addtogroup odph_linux ODPH LINUX
> + * @{
> + */
> +
> +/**
> + * Creates and launches pthreads
> + *
> + * Creates, pins and launches threads to separate CPU's based on the
> cpumask.
> + *
> + * @param[out] pthread_tbl Table of pthread state information records.
> Table
> + * must have at least as many entries as there
> are
> + * CPUs in the CPU mask.
> + * @param mask CPU mask
> + * @param thr_params Linux helper thread parameters
> + *
> + * @return Number of threads created
> + */
> +int odph_linux_pthread_create(odph_linux_pthread_t *pthread_tbl,
> + const odp_cpumask_t *mask,
> + const odph_linux_thr_params_t *thr_params);
Re: [lng-odp] [PATCH v4 3/4] helper: move thread implementation under platform
Savolainen, Petri (Nokia - FI/Espoo) Mon, 23 Jan 2017 01:07:04 -0800
- [lng-odp] [PATCH v4 0/4] remove Linux... Mike Holmes
- [lng-odp] [PATCH v4 1/4] configu... Mike Holmes
- [lng-odp] [PATCH v4 2/4] helper:... Mike Holmes
- [lng-odp] [PATCH v4 4/4] helper:... Mike Holmes
- [lng-odp] [PATCH v4 3/4] helper:... Mike Holmes
- Re: [lng-odp] [PATCH v4 3/4]... Savolainen, Petri (Nokia - FI/Espoo)
- Re: [lng-odp] [PATCH v4 ... Mike Holmes
- Re: [lng-odp] [PATCH... Savolainen, Petri (Nokia - FI/Espoo)
- Re: [lng-odp] [... Mike Holmes
- Re: [lng-odp] [PATCH v4 0/4] rem... Maxim Uvarov
