Home | History | Annotate | Download | only in executer

Lines Matching defs:Thread

165     ACPI_THREAD_STATE       *Thread);
184 ACPI_THREAD_STATE *Thread = ObjDesc->Mutex.OwnerThread;
187 if (!Thread)
214 Thread->AcquiredMutexList = ObjDesc->Mutex.Next;
224 * Thread - Current executing thread object
235 ACPI_THREAD_STATE *Thread)
240 ListHead = Thread->AcquiredMutexList;
256 Thread->AcquiredMutexList = ObjDesc;
266 * ThreadId - Current thread state
271 * path that supports multiple acquires by the same thread.
300 /* Support for multiple acquires by the owning thread */
305 * The mutex is already owned by this thread, just increment the
372 /* Must have a valid thread state struct */
374 if (!WalkState->Thread)
377 "Cannot acquire Mutex [%4.4s], null thread info",
386 if (WalkState->Thread->CurrentSyncLevel > ObjDesc->Mutex.SyncLevel)
392 WalkState->Thread->CurrentSyncLevel));
397 "Acquiring: Mutex SyncLevel %u, Thread SyncLevel %u, "
399 ObjDesc->Mutex.SyncLevel, WalkState->Thread->CurrentSyncLevel,
400 ObjDesc->Mutex.AcquisitionDepth, WalkState->Thread));
403 ObjDesc, WalkState->Thread->ThreadId);
407 /* Save Thread object, original/current sync levels */
409 ObjDesc->Mutex.OwnerThread = WalkState->Thread;
411 WalkState->Thread->CurrentSyncLevel;
412 WalkState->Thread->CurrentSyncLevel =
415 /* Link the mutex to the current thread for force-unlock at method exit */
417 AcpiExLinkMutex (ObjDesc, WalkState->Thread);
421 "Acquired: Mutex SyncLevel %u, Thread SyncLevel %u, Depth %u\n",
422 ObjDesc->Mutex.SyncLevel, WalkState->Thread->CurrentSyncLevel,
439 * previous multiple acquires) by the same thread.
545 /* Must have a valid thread ID */
547 if (!WalkState->Thread)
550 "Cannot release Mutex [%4.4s], null thread info",
556 * The Mutex is owned, but this thread must be the owner.
557 * Special case for Global Lock, any thread can release
559 if ((OwnerThread->ThreadId != WalkState->Thread->ThreadId) &&
563 "Thread %u cannot release Mutex [%4.4s] acquired by thread %u",
564 (UINT32) WalkState->Thread->ThreadId,
583 ObjDesc->Mutex.SyncLevel, WalkState->Thread->CurrentSyncLevel));
596 "Releasing: Object SyncLevel %u, Thread SyncLevel %u, "
598 ObjDesc->Mutex.SyncLevel, WalkState->Thread->CurrentSyncLevel,
600 WalkState->Thread));
616 "Released: Object SyncLevel %u, Thread SyncLevel, %u, "
618 ObjDesc->Mutex.SyncLevel, WalkState->Thread->CurrentSyncLevel,
629 * PARAMETERS: Thread - Current executing thread object
633 * DESCRIPTION: Release all mutexes held by this thread
635 * NOTE: This function is called as the thread is exiting the interpreter.
637 * only when the parent thread actually exits the interpreter. This allows one
645 ACPI_THREAD_STATE *Thread)
647 ACPI_OPERAND_OBJECT *Next = Thread->AcquiredMutexList;
677 /* Update Thread SyncLevel (Last mutex is the important one) */
679 Thread->CurrentSyncLevel = ObjDesc->Mutex.OriginalSyncLevel;