mirror of
				https://github.com/bytecodealliance/wasm-micro-runtime.git
				synced 2025-10-31 21:27:30 +00:00 
			
		
		
		
	Fix pthread_getspecific return value (#999)
Fix pthread_getspecific return value as mentioned in #995
This commit is contained in:
		
							parent
							
								
									6ddfae6f66
								
							
						
					
					
						commit
						5f8c7655a7
					
				|  | @ -1011,7 +1011,7 @@ pthread_setspecific_wrapper(wasm_exec_env_t exec_env, int32 key, | |||
|     key_values = key_value_list_lookup_or_create(exec_env, info, key); | ||||
|     if (!key_values) { | ||||
|         os_mutex_unlock(&info->key_data_list_lock); | ||||
|         return 0; | ||||
|         return -1; | ||||
|     } | ||||
| 
 | ||||
|     key_values[key] = value_offset; | ||||
|  | @ -1028,7 +1028,7 @@ pthread_getspecific_wrapper(wasm_exec_env_t exec_env, int32 key) | |||
|     int32 ret, *key_values; | ||||
| 
 | ||||
|     if (!info) | ||||
|         return -1; | ||||
|         return 0; | ||||
| 
 | ||||
|     os_mutex_lock(&info->key_data_list_lock); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Xu Jun
						Xu Jun