diff options
| author | Qiuwen Lu <[email protected]> | 2019-09-18 16:16:03 +0800 |
|---|---|---|
| committer | Qiuwen Lu <[email protected]> | 2019-09-18 16:16:03 +0800 |
| commit | c90fdc817337a6086e4889bfe61a49982f018245 (patch) | |
| tree | 07312fbeb96a238b824a91a924dcca9496efdbd6 | |
| parent | 79e262c2a02f16ee47be99c7bb4d93c02363a953 (diff) | |
#19 修正设置线程亲和性时传入变量大小设置错误的问题。
| -rw-r--r-- | app/src/marsio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/marsio.c b/app/src/marsio.c index 48b506b..32d9a74 100644 --- a/app/src/marsio.c +++ b/app/src/marsio.c @@ -995,7 +995,7 @@ int marsio_thread_init(struct mr_instance * instance) CPU_SET(cpu_id, &_cpu_set); pthread_t ppid = pthread_self(); - ret = pthread_setaffinity_np(ppid, sizeof(cpu_mask_t), &_cpu_set); + ret = pthread_setaffinity_np(ppid, sizeof(_cpu_set), &_cpu_set); if (ret < 0) { MR_ERROR("Set thread affinity failed : %s. ", strerror(errno)); |
