[vlc-commits] vlc_GetCPUCount: no need to call getpid()
Rémi Denis-Courmont
git at videolan.org
Sat Sep 8 18:14:36 CEST 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Sep 8 18:59:45 2012 +0300| [60d58695815daacfc8163d909e017b9eaf8f6274] | committer: Rémi Denis-Courmont
vlc_GetCPUCount: no need to call getpid()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=60d58695815daacfc8163d909e017b9eaf8f6274
---
src/posix/thread.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/posix/thread.c b/src/posix/thread.c
index 1514b80..5da8805 100644
--- a/src/posix/thread.c
+++ b/src/posix/thread.c
@@ -996,7 +996,7 @@ unsigned vlc_GetCPUCount(void)
cpu_set_t cpu;
CPU_ZERO(&cpu);
- if (sched_getaffinity (getpid(), sizeof (cpu), &cpu) < 0)
+ if (sched_getaffinity (0, sizeof (cpu), &cpu) < 0)
return 1;
return CPU_COUNT (&cpu);
More information about the vlc-commits
mailing list