2
0
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:
Ben Pfaff
2013-08-06 14:30:01 -07:00
parent ada3a58d1f
commit 9c4c45edc3
3 changed files with 5 additions and 3 deletions

View File

@@ -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;
}