diff options
| author | Qiuwen Lu <[email protected]> | 2017-04-21 14:16:28 +0800 |
|---|---|---|
| committer | Qiuwen Lu <[email protected]> | 2017-04-21 14:16:28 +0800 |
| commit | 763b5d77b75ef288bdcc75c801f499f308873d5b (patch) | |
| tree | d8e2c9a9e874c1e8329c3f16806b8d57ef986847 /app/src/marsio.c | |
| parent | 7640a3a3cf18dd319676afe84e60a180baf36b95 (diff) | |
修正VNODE的生产者、消费者销毁时段错误的问题,将内存屏障替换为gcc提供的内存模型相关Builtin。
Diffstat (limited to 'app/src/marsio.c')
| -rw-r--r-- | app/src/marsio.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/src/marsio.c b/app/src/marsio.c index c574014..55ee767 100644 --- a/app/src/marsio.c +++ b/app/src/marsio.c @@ -387,6 +387,7 @@ struct mr_instance * marsio_create() instance = malloc(sizeof(struct mr_instance)); memset(instance, 0, sizeof(struct mr_instance)); + instance->is_exit_when_err_raise = 1; _current_instance = instance; return instance; } @@ -484,6 +485,12 @@ int marsio_thread_init(struct mr_instance * instance) return RT_ERR; } + if (instance->cpu_mask == 0) + { + MR_DEBUG("CPU mask is zero, thread affinity is not allowed."); + return RT_SUCCESS; + } + int ret = 0; pthread_mutex_lock(&instance->lock_thread_init); |
