pthread_attr_setcreatesuspend_np(3) [netbsd man page]
PTHREAD_ATTR_SETCREATESUSPEND_NP(3) BSD Library Functions Manual PTHREAD_ATTR_SETCREATESUSPEND_NP(3)NAME
pthread_attr_setcreatesuspend_np -- set attribute to create a thread suspended
LIBRARY
POSIX Threads Library (libpthread, -lpthread)
SYNOPSIS
#include <pthread.h>
int
pthread_attr_setcreatesuspend_np(pthread_attr_t attr);
DESCRIPTION
The pthread_attr_setcreatesuspend_np() function sets the attr argument, so that if this attr is used in a pthread_create(3) call, then the
thread created will not run, but it will remain blocked in the suspended queue, until pthread_resume_np(3) is called on it.
RETURN VALUES
The pthread_attr_setcreatesuspend_np() function always returns 0.
COMPATIBILITY
The function is a non-standard extension.
ERRORS
No errors are defined.
SEE ALSO pthread_create(3), pthread_resume_np(3), pthread_suspend_np(3)BSD July 9, 2010 BSD
Check Out this Related Man Page
PTHREAD_ATTR_SETCREATESUSPEND_NP(3) BSD Library Functions Manual PTHREAD_ATTR_SETCREATESUSPEND_NP(3)NAME
pthread_attr_setcreatesuspend_np -- prepare attribute for creation of suspended thread
LIBRARY
POSIX Threads Library (libpthread, -lpthread)
SYNOPSIS
#include <pthread_np.h>
int
pthread_attr_setcreatesuspend_np(pthread_attr_t *attr);
DESCRIPTION
The pthread_attr_setcreatesuspend_np() instructs pthread_create(3) that the thread created with the attr attribute should be created and left
in a suspended state until explicitly resumed by the call to pthread_resume_np() or pthread_resume_all_np().
RETURN VALUES
The pthread_attr_setcreatesuspend_np() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable
errno is set to indicate the error.
ERRORS
The pthread_attr_setcreatesuspend_np() function will fail if:
[EINVAL] The value specified by attr is invalid.
SEE ALSO pthread_attr_destroy(3), pthread_attr_init(3), pthread_create(3), pthread_resume_all_np(3), pthread_resume_np(3)AUTHORS
This manual page was written by Alexey Zelkin <phantom@FreeBSD.org>.
BSD February 13, 2003 BSD
Hello
My problem goes like this:
I have used Pthread_create, and I have tryed to create 2 proccess but nothing happens! It does not even matter what the function im trying to create do. It is if im trying to activate an empty function. This is my code.
Any help will be highly appreciated.... (1 Reply)
Hi.
I use C++ and I wishes to create a thread with the pthread_create function, my question is, how can I do this if I wish that the function will be a member of the class ??
I know from windows programming that I can declare a static function like this
static unsigned int __stdcall... (7 Replies)
I read somewhere that I should use -pthread instead of -lpthread as compiler/linker flag, or define _REENTRANT. Is this incorrect to use only -lpthread? (I use gcc) (5 Replies)
Hi,
I'm trying to do my homework assignment but I am having trouble using the pthread_create fucntion.
Here is my code________________
//Alicia Johnson
//sum_pid program
//creates n number of threads. These threads create a random number
//then adds the number to a global array. Then... (1 Reply)
Hi all,
Sorry for the title because I didn't find a proper name for it. My question is about POSIX functions, such as timer_create(), mq_open() and pthread_create().
void test_queue()
{
struct mq_attr attr;
attr.mq_maxmsg = 10;
attr.mq_msgsize = 64;
mq_unlink("/my_test_queue");... (6 Replies)