diff options
author | Alexandru Ardelean <ardeleanalex@gmail.com> | 2016-03-10 08:37:43 -0800 |
---|---|---|
committer | Andy Zhou <azhou@ovn.org> | 2016-03-10 19:25:38 -0800 |
commit | 5ffab04a5b9a9f635fb935f805bc1cfaa8043f3e (patch) | |
tree | 4d39e15e7114bd0b8b94ea21f3896e48ba98aad3 /lib | |
parent | 8302b6d1eca5e1f37a92ea3e6e5bf9e617b75075 (diff) | |
download | openvswitch-5ffab04a5b9a9f635fb935f805bc1cfaa8043f3e.tar.gz |
lib/ovs-thread: make use of the pthread_attr object
The pthread_attr object needs to be passed to the pthread_create()
call in order to make use of it.
Fixes: 8147cec9ee (lib/ovs-thread: Ensure that thread stacks are
always at least 512 kB.)
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Acked-by: Andy Zhou <azhou@ovn.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ovs-thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ovs-thread.c b/lib/ovs-thread.c index b0e10ee89..777729886 100644 --- a/lib/ovs-thread.c +++ b/lib/ovs-thread.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2014, 2015 Nicira, Inc. + * Copyright (c) 2013, 2014, 2015, 2016 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -386,7 +386,7 @@ ovs_thread_create(const char *name, void *(*start)(void *), void *arg) pthread_attr_init(&attr); set_min_stack_size(&attr, 512 * 1024); - error = pthread_create(&thread, NULL, ovsthread_wrapper, aux); + error = pthread_create(&thread, &attr, ovsthread_wrapper, aux); if (error) { ovs_abort(error, "pthread_create failed"); } |