From 5ee329d537772b661f13d0ba4723cfb6f69333f0 Mon Sep 17 00:00:00 2001
From: sujinwen <sujinwen@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期二, 25 七月 2017 15:26:41 +0800
Subject: [PATCH] Failed commit: Default
---
VisitFace/RtspNativeCodec/app/src/main/cpp/cpu_sched_test.cpp | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/VisitFace/RtspNativeCodec/app/src/main/cpp/cpu_sched_test.cpp b/VisitFace/RtspNativeCodec/app/src/main/cpp/cpu_sched_test.cpp
index cd4bd17..5568ac2 100644
--- a/VisitFace/RtspNativeCodec/app/src/main/cpp/cpu_sched_test.cpp
+++ b/VisitFace/RtspNativeCodec/app/src/main/cpp/cpu_sched_test.cpp
@@ -25,10 +25,22 @@
LOG_ERROR << "cpu " << i <<": " << CPU_ISSET(i, &mask) <<LOG_ENDL;
}
- CPU_SET(id, &mask);
+ //CPU_CLR(0x0000, &mask);
+ //CPU_CLR(0x0001, &mask);
+ //CPU_CLR(0x0002, &mask);
+ //CPU_CLR(0x0003, &mask);
+ //CPU_CLR(0x0004, &mask);
+ //CPU_CLR(0x0005, &mask);
+
+ for(int i= 0; i< num; i++)
+ {
+ LOG_ERROR << "cpu " << i <<": " << CPU_ISSET(i, &mask) <<LOG_ENDL;
+ }
+
+ //CPU_SET(id, &mask);
if (sched_setaffinity(0, sizeof(mask), &mask) == -1)
{
- fprintf(stderr, "warning: could not set CPU affinity/n");
+ LOG_ERROR << "warning: could not set CPU affinity" << LOG_ENDL;
}
}
--
Gitblit v1.8.0