fix: correct spelling
correct some typos in los_task.c and other files close https://gitee.com/openharmony/kernel_liteos_a/issues/I3QDB8
This commit is contained in:
@@ -435,7 +435,7 @@ int pthread_detach(pthread_t thread)
|
||||
/* Set state to detached and kick any joinees to make them return. */
|
||||
SCHEDULER_LOCK(intSave);
|
||||
if (!(detached->task->taskStatus & OS_TASK_STATUS_EXIT)) {
|
||||
ret = OsTaskSetDeatchUnsafe(detached->task);
|
||||
ret = OsTaskSetDetachUnsafe(detached->task);
|
||||
if (ret == ESRCH) {
|
||||
ret = LOS_OK;
|
||||
} else if (ret == LOS_OK) {
|
||||
|
||||
Reference in New Issue
Block a user