Create a thread for a vdev
Synopsis:
#include <qvm/vdev-core.h>
int vdev_thread_create(const vdev_t *vdp,
const char *name,
pthread_t *thread,
pthread_attr_t *attr,
void *(*start_routine)(void *),
void *arg)
Arguments:
- vdp
- A pointer to the vdev.
- name
- A pointer to the name of the thread.
- thread
- A pointer to the location where the returned pthread_t object is to be stored.
- attr
- A pointer to the pthread_attr_t object to pass to pthread_create().
- start_routine
- A pointer to the function to be passed to pthread_create().
- arg
- A pointer to the argument to be passed to the thread_create() arg parameter.
Library:
Provided by qvm; no external library is required.
Description:
See pthread_create() in the C Library Reference.
Returns:
The value returned by pthread_create().