mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
ovs-thread: New function xpthread_setspecific().
Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -275,7 +275,7 @@ poll_loop(void)
|
||||
loop = pthread_getspecific(key);
|
||||
if (!loop) {
|
||||
loop = xzalloc(sizeof *loop);
|
||||
pthread_setspecific(key, loop);
|
||||
xpthread_setspecific(key, loop);
|
||||
}
|
||||
return loop;
|
||||
}
|
||||
|
Reference in New Issue
Block a user