Home
last modified time | relevance | path

Searched full:thread (Results 1 – 25 of 11397) sorted by relevance

12345678910>>...456

/external/angle/src/libGLESv2/
Degl_context_lock_autogen.h20 ScopedContextMutexLock GetContextLock_ChooseConfig(Thread *thread, egl::Display *dpyPacked);
21 ScopedContextMutexLock GetContextLock_CopyBuffers(Thread *thread, egl::Display *dpyPacked);
22 ScopedContextMutexLock GetContextLock_CreateContext(Thread *thread,
25 ScopedContextMutexLock GetContextLock_CreatePbufferSurface(Thread *thread, egl::Display *dpyPacked);
26 ScopedContextMutexLock GetContextLock_CreatePixmapSurface(Thread *thread, egl::Display *dpyPacked);
27 ScopedContextMutexLock GetContextLock_CreateWindowSurface(Thread *thread, egl::Display *dpyPacked);
28 ScopedContextMutexLock GetContextLock_DestroyContext(Thread *thread,
31 ScopedContextMutexLock GetContextLock_DestroySurface(Thread *thread, egl::Display *dpyPacked);
32 ScopedContextMutexLock GetContextLock_GetConfigAttrib(Thread *thread,
35 ScopedContextMutexLock GetContextLock_GetConfigs(Thread *thread, egl::Display *dpyPacked);
[all …]
Degl_context_lock_impl.h17 ANGLE_INLINE ScopedContextMutexLock GetContextLock_ChooseConfig(Thread *thread, in GetContextLock_ChooseConfig() argument
23 ANGLE_INLINE ScopedContextMutexLock GetContextLock_CopyBuffers(Thread *thread, in GetContextLock_CopyBuffers() argument
29 ANGLE_INLINE ScopedContextMutexLock GetContextLock_CreateContext(Thread *thread, in GetContextLock_CreateContext() argument
36 ANGLE_INLINE ScopedContextMutexLock GetContextLock_CreatePbufferSurface(Thread *thread, in GetContextLock_CreatePbufferSurface() argument
42 ANGLE_INLINE ScopedContextMutexLock GetContextLock_CreatePixmapSurface(Thread *thread, in GetContextLock_CreatePixmapSurface() argument
48 ANGLE_INLINE ScopedContextMutexLock GetContextLock_CreateWindowSurface(Thread *thread, in GetContextLock_CreateWindowSurface() argument
54 ANGLE_INLINE ScopedContextMutexLock GetContextLock_DestroyContext(Thread *thread, in GetContextLock_DestroyContext() argument
62 ANGLE_INLINE ScopedContextMutexLock GetContextLock_DestroySurface(Thread *thread, in GetContextLock_DestroySurface() argument
68 ANGLE_INLINE ScopedContextMutexLock GetContextLock_GetConfigAttrib(Thread *thread, in GetContextLock_GetConfigAttrib() argument
75 ANGLE_INLINE ScopedContextMutexLock GetContextLock_GetConfigs(Thread *thread, in GetContextLock_GetConfigs() argument
[all …]
Degl_ext_stubs_autogen.h33 class Thread; variable
36 EGLint ClientWaitSyncKHR(Thread *thread,
41 EGLImageKHR CreateImageKHR(Thread *thread,
47 EGLClientBuffer CreateNativeClientBufferANDROID(Thread *thread,
49 EGLSurface CreatePlatformPixmapSurfaceEXT(Thread *thread,
54 EGLSurface CreatePlatformWindowSurfaceEXT(Thread *thread,
59 EGLStreamKHR CreateStreamKHR(Thread *thread,
62 EGLSyncKHR CreateSyncKHR(Thread *thread,
66 EGLint DebugMessageControlKHR(Thread *thread,
69 EGLBoolean DestroyImageKHR(Thread *thread, egl::Display *dpyPacked, ImageID imagePacked);
[all …]
Degl_ext_stubs.cpp15 #include "libANGLE/Thread.h"
25 EGLint ClientWaitSyncKHR(Thread *thread, in ClientWaitSyncKHR() argument
31 ANGLE_EGL_TRY_RETURN(thread, display->prepareForCall(), "eglClientWaitSync", in ClientWaitSyncKHR()
33 gl::Context *currentContext = thread->getContext(); in ClientWaitSyncKHR()
36 ANGLE_EGL_TRY_RETURN(thread, in ClientWaitSyncKHR()
40 thread->setSuccess(); in ClientWaitSyncKHR()
44 EGLImageKHR CreateImageKHR(Thread *thread, in CreateImageKHR() argument
53 ANGLE_EGL_TRY_RETURN(thread, display->prepareForCall(), "eglCreateImageKHR", in CreateImageKHR()
57 ANGLE_EGL_TRY_RETURN(thread, display->createImage(context, target, buffer, attributes, &image), in CreateImageKHR()
60 thread->setSuccess(); in CreateImageKHR()
[all …]
Degl_stubs_autogen.h33 class Thread; variable
36 EGLBoolean BindAPI(Thread *thread, EGLenum api);
37 EGLBoolean BindTexImage(Thread *thread,
41 EGLBoolean ChooseConfig(Thread *thread,
47 EGLint ClientWaitSync(Thread *thread,
52 EGLBoolean CopyBuffers(Thread *thread,
56 EGLContext CreateContext(Thread *thread,
61 EGLImage CreateImage(Thread *thread,
67 EGLSurface CreatePbufferFromClientBuffer(Thread *thread,
73 EGLSurface CreatePbufferSurface(Thread *thread,
[all …]
Degl_stubs.cpp16 #include "libANGLE/Thread.h"
50 EGLBoolean BindAPI(Thread *thread, EGLenum api) in BindAPI() argument
52 thread->setAPI(api); in BindAPI()
54 thread->setSuccess(); in BindAPI()
58 EGLBoolean BindTexImage(Thread *thread, Display *display, egl::SurfaceID surfaceID, EGLint buffer) in BindTexImage() argument
62 ANGLE_EGL_TRY_RETURN(thread, display->prepareForCall(), "eglBindTexImage", in BindTexImage()
65 gl::Context *context = thread->getContext(); in BindTexImage()
71 ANGLE_EGL_TRY_RETURN(thread, eglSurface->bindTexImage(context, textureObject, buffer), in BindTexImage()
75 thread->setSuccess(); in BindTexImage()
79 EGLBoolean ChooseConfig(Thread *thread, in ChooseConfig() argument
[all …]
Dentry_points_egl_ext_autogen.cpp30 Thread *thread = egl::GetCurrentThread(); in EGL_SetBlobCacheFuncsANDROID() local
40 ANGLE_EGL_SCOPED_CONTEXT_LOCK(SetBlobCacheFuncsANDROID, thread, dpyPacked); in EGL_SetBlobCacheFuncsANDROID()
41 ANGLE_EGL_VALIDATE_VOID(thread, SetBlobCacheFuncsANDROID, GetDisplayIfValid(dpyPacked), in EGL_SetBlobCacheFuncsANDROID()
44 SetBlobCacheFuncsANDROID(thread, dpyPacked, set, get); in EGL_SetBlobCacheFuncsANDROID()
47 ANGLE_CAPTURE_EGL(SetBlobCacheFuncsANDROID, true, thread, dpyPacked, set, get); in EGL_SetBlobCacheFuncsANDROID()
56 Thread *thread = egl::GetCurrentThread(); in EGL_CreateNativeClientBufferANDROID() local
66 ANGLE_EGL_SCOPED_CONTEXT_LOCK(CreateNativeClientBufferANDROID, thread); in EGL_CreateNativeClientBufferANDROID()
67 ANGLE_EGL_VALIDATE(thread, CreateNativeClientBufferANDROID, nullptr, EGLClientBuffer, in EGL_CreateNativeClientBufferANDROID()
70 returnValue = CreateNativeClientBufferANDROID(thread, attrib_listPacked); in EGL_CreateNativeClientBufferANDROID()
73 ANGLE_CAPTURE_EGL(CreateNativeClientBufferANDROID, true, thread, attrib_listPacked, in EGL_CreateNativeClientBufferANDROID()
[all …]
Dentry_points_egl_autogen.cpp34 Thread *thread = egl::GetCurrentThread(); in EGL_ChooseConfig() local
48 ANGLE_EGL_SCOPED_CONTEXT_LOCK(ChooseConfig, thread, dpyPacked); in EGL_ChooseConfig()
49 ANGLE_EGL_VALIDATE(thread, ChooseConfig, GetDisplayIfValid(dpyPacked), EGLBoolean, in EGL_ChooseConfig()
52 returnValue = ChooseConfig(thread, dpyPacked, attrib_listPacked, configs, config_size, in EGL_ChooseConfig()
56 ANGLE_CAPTURE_EGL(ChooseConfig, true, thread, dpyPacked, attrib_listPacked, configs, in EGL_ChooseConfig()
68 Thread *thread = egl::GetCurrentThread(); in EGL_CopyBuffers() local
81 ANGLE_EGL_SCOPED_CONTEXT_LOCK(CopyBuffers, thread, dpyPacked); in EGL_CopyBuffers()
82 ANGLE_EGL_VALIDATE(thread, CopyBuffers, GetDisplayIfValid(dpyPacked), EGLBoolean, in EGL_CopyBuffers()
85 returnValue = CopyBuffers(thread, dpyPacked, surfacePacked, target); in EGL_CopyBuffers()
88 ANGLE_CAPTURE_EGL(CopyBuffers, true, thread, dpyPacked, surfacePacked, target, returnValue); in EGL_CopyBuffers()
[all …]
/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/
DThreadUtils.java31 * Helpers for {@code java.lang.Thread} and {@code java.lang.ThreadGroup}.
37 * @see Thread
55 public boolean test(final Thread thread) { in test() argument
68 * A predicate implementation which matches a thread or thread group name.
81 * @param name thread or thread group name
90 public boolean test(final Thread thread) { in test() argument
91 return thread != null && thread.getName().equals(name); in test()
101 * A predicate for selecting thread groups.
111 * Evaluates this predicate on the given thread group.
112 * @param threadGroup the thread group
[all …]
/external/angle/src/libANGLE/capture/
Dcapture_egl_autogen.h22 angle::CallCapture CaptureChooseConfig(egl::Thread *thread,
30 angle::CallCapture CaptureCopyBuffers(egl::Thread *thread,
36 angle::CallCapture CaptureCreateContext(egl::Thread *thread,
43 angle::CallCapture CaptureCreatePbufferSurface(egl::Thread *thread,
49 angle::CallCapture CaptureCreatePixmapSurface(egl::Thread *thread,
56 angle::CallCapture CaptureCreateWindowSurface(egl::Thread *thread,
63 angle::CallCapture CaptureDestroyContext(egl::Thread *thread,
68 angle::CallCapture CaptureDestroySurface(egl::Thread *thread,
73 angle::CallCapture CaptureGetConfigAttrib(egl::Thread *thread,
80 angle::CallCapture CaptureGetConfigs(egl::Thread *thread,
[all …]
/external/rust/crates/thread_local/src/
Dthread_id.rs16 /// Thread ID manager which allocates thread IDs. It attempts to aggressively
17 /// reuse thread IDs where possible to avoid cases where a ThreadLocal grows
38 .expect("Ran out of thread IDs"); in alloc()
49 /// Data which is unique to the current thread while it is running.
50 /// A thread ID may be reused after a thread exits.
52 pub(crate) struct Thread { struct
53 /// The thread ID obtained from the thread ID manager.
55 /// The bucket this thread's local storage will be in.
57 /// The size of the bucket this thread's local storage will be in.
59 /// The index into the bucket this thread's local storage is in.
[all …]
/external/skia/tests/sksl/metal/
DOutParams.metal9 void out_half_vh(thread half& v);
10 void _skOutParamHelper0_out_half_vh(thread half& h) {
15 void out_half2_vh2(thread half2& v);
16 void _skOutParamHelper1_out_half2_vh2(thread half2& h2) {
21 void out_half3_vh3(thread half3& v);
22 void _skOutParamHelper2_out_half3_vh3(thread half3& h3) {
27 void out_half4_vh4(thread half4& v);
28 void _skOutParamHelper3_out_half4_vh4(thread half4& h4) {
33 void out_half_vh(thread half& v);
34 void _skOutParamHelper4_out_half_vh(thread half3& h3) {
[all …]
/external/mockito/src/main/java/org/mockito/internal/util/concurrent/
DDetachedThreadLocal.java9 …* A detached local that allows for explicit control of setting and removing values from a thread-l…
12 * Instances of this class are non-blocking and fully thread safe.
16 final WeakConcurrentMap<Thread, T> map;
20 case THREAD: in DetachedThreadLocal()
22 map = new WeakConcurrentMap<Thread, T>(cleaner == Cleaner.THREAD) { in DetachedThreadLocal()
24 protected T defaultValue(Thread key) { in DetachedThreadLocal()
30 map = new WeakConcurrentMap.WithInlinedExpunction<Thread, T>() { in DetachedThreadLocal()
32 protected T defaultValue(Thread key) { in DetachedThreadLocal()
43 return map.get(Thread.currentThread()); in get()
47 map.put(Thread.currentThread(), value); in set()
[all …]
/external/pigweed/pw_thread/
Ddocs.rst6 The ``pw_thread`` module contains utilities for thread creation and thread
13 Thread Sleeping
19 Blocks the execution of the current thread for at least the specified
27 **Precondition:** This can only be called from a thread, meaning the
32 Blocks the execution of the current thread until at least the specified
40 **Precondition:** This can only be called from a thread, meaning the
74 Thread Yielding
87 **Precondition:** This can only be called from a thread, meaning the
107 Thread Identification
109 The class ``pw::thread::Id`` is a lightweight, trivially copyable class that
[all …]
Dthread_facade_test.cc19 #include "pw_thread/thread.h"
21 using pw::thread::test::TestOptionsThread0;
22 using pw::thread::test::TestOptionsThread1;
23 using pw::thread::test::WaitUntilDetachedThreadsCleanedUp;
25 namespace pw::thread { namespace
28 TEST(Thread, DefaultIds) { in TEST() argument
29 Thread not_executing_thread; in TEST()
38 TEST(Thread, Join) { in TEST() argument
39 Thread thread; in TEST() local
40 EXPECT_FALSE(thread.joinable()); in TEST()
[all …]
/external/pigweed/pw_thread/public/pw_thread/
Dthread.h24 namespace pw::thread {
26 // The Options contains the parameters needed for a thread to start.
32 // but may contain things like the thread name, priority, scheduling policy,
34 // Context (the collection of memory allocations needed for a thread to run).
37 // All `pw::thread::Thread` instances must be explicitly `join()`'d or
38 // `detach()`'d through the run-time Thread API.
45 // Options must not contain any memory needed for a thread to run (TCB,
47 // starting a thread.
51 // instance in C++17 with `pw::thread::Options{}` syntax.
55 // The class Thread can represent a single thread of execution. Threads allow
[all …]
/external/skia/tests/sksl/shared/
DOutParams.metal14 void out_half_vh(Uniforms _uniforms, thread half& v);
15 void _skOutParamHelper0_out_half_vh(Uniforms _uniforms, thread half& h) {
20 void out_half2_vh2(Uniforms _uniforms, thread half2& v);
21 void _skOutParamHelper1_out_half2_vh2(Uniforms _uniforms, thread half2& h2) {
26 void out_half3_vh3(Uniforms _uniforms, thread half3& v);
27 void _skOutParamHelper2_out_half3_vh3(Uniforms _uniforms, thread half3& h3) {
32 void out_half4_vh4(Uniforms _uniforms, thread half4& v);
33 void _skOutParamHelper3_out_half4_vh4(Uniforms _uniforms, thread half4& h4) {
38 void out_half_vh(Uniforms _uniforms, thread half& v);
39 void _skOutParamHelper4_out_half_vh(Uniforms _uniforms, thread half3& h3) {
[all …]
/external/oj-libjdwp/src/share/back/
DthreadControl.c52 * This is a per-thread structure that is allocated on the
53 * first event that occurs in a thread. It is freed after the
54 * thread's thread end event has completed processing. The
55 * structure contains state information on its thread including
57 * per-thread state such as the current method invocation or
65 jthread thread; member
77 jint resumeFrameDepth; /* !=0 => This thread is in a call to Thread.resume() */
86 struct ThreadList *list; /* Tells us what list this thread is in */
101 * popFrameProceedLock is used to assure that the event thread is
112 static jvmtiError threadControl_removeDebugThread(jthread thread);
[all …]
/external/webrtc/rtc_base/
Dthread.cc11 #include "rtc_base/thread.h"
116 void ThreadManager::Add(Thread* message_queue) { in Add()
119 void ThreadManager::AddInternal(Thread* message_queue) { in AddInternal()
127 void ThreadManager::Remove(Thread* message_queue) { in Remove()
130 void ThreadManager::RemoveInternal(Thread* message_queue) { in RemoveInternal()
135 std::vector<Thread*>::iterator iter; in RemoveInternal()
147 void ThreadManager::RemoveFromSendGraph(Thread* thread) { in RemoveFromSendGraph() argument
149 if (it->first == thread) { in RemoveFromSendGraph()
152 it->second.erase(thread); in RemoveFromSendGraph()
158 void ThreadManager::RegisterSendAndCheckForCycles(Thread* source, in RegisterSendAndCheckForCycles()
[all …]
Dthread_unittest.cc11 #include "rtc_base/thread.h"
64 MessageClient(Thread* pth, Socket* socket) : socket_(socket) {} in MessageClient()
82 Thread* post_thread, in SocketClient()
110 Thread* post_thread_;
114 class CustomThread : public rtc::Thread {
117 : Thread(std::unique_ptr<SocketServer>(new rtc::NullSocketServer())) {} in CustomThread()
121 bool WrapCurrent() { return Thread::WrapCurrent(); } in WrapCurrent()
122 void UnwrapCurrent() { Thread::UnwrapCurrent(); } in UnwrapCurrent()
125 // A thread that does nothing when it runs and signals an event
127 class SignalWhenDestroyedThread : public Thread {
[all …]
/external/pigweed/pw_thread_threadx/
Ddocs.rst12 Thread Creation Backend
14 A backend for ``pw::thread::Thread`` is offered using ``tx_thread_create``.
16 thread's context.
19 allocated and passed in as an option. As a quick example, a detached thread can
31 pw::thread::threadx::config::kDefaultPriority;
33 pw::thread::threadx::config::kDefaultTimeSliceInterval;
35 pw::thread::threadx::config::kDefaultStackSizeWords;
37 pw::thread::threadx::ContextWithStack<kFooStackSizeWords>
40 pw::thread::DetachedThread(
41 pw::thread::threadx::Options()
[all …]
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DThreadFactoryBuilderTest.java22 import java.lang.Thread.UncaughtExceptionHandler;
46 public void uncaughtException(Thread t, Throwable e) {
61 Thread thread = threadFactory.newThread(monitoredRunnable); in testThreadFactoryBuilder_defaults() local
62 checkThreadPoolName(thread, 1); in testThreadFactoryBuilder_defaults()
64 Thread defaultThread = Executors.defaultThreadFactory().newThread(monitoredRunnable); in testThreadFactoryBuilder_defaults()
65 assertEquals(defaultThread.isDaemon(), thread.isDaemon()); in testThreadFactoryBuilder_defaults()
66 assertEquals(defaultThread.getPriority(), thread.getPriority()); in testThreadFactoryBuilder_defaults()
67 assertSame(defaultThread.getThreadGroup(), thread.getThreadGroup()); in testThreadFactoryBuilder_defaults()
68 assertSame(defaultThread.getUncaughtExceptionHandler(), thread.getUncaughtExceptionHandler()); in testThreadFactoryBuilder_defaults()
71 thread.start(); in testThreadFactoryBuilder_defaults()
[all …]
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DThreadFactoryBuilderTest.java22 import java.lang.Thread.UncaughtExceptionHandler;
46 public void uncaughtException(Thread t, Throwable e) {
61 Thread thread = threadFactory.newThread(monitoredRunnable); in testThreadFactoryBuilder_defaults() local
62 checkThreadPoolName(thread, 1); in testThreadFactoryBuilder_defaults()
64 Thread defaultThread = Executors.defaultThreadFactory().newThread(monitoredRunnable); in testThreadFactoryBuilder_defaults()
65 assertEquals(defaultThread.isDaemon(), thread.isDaemon()); in testThreadFactoryBuilder_defaults()
66 assertEquals(defaultThread.getPriority(), thread.getPriority()); in testThreadFactoryBuilder_defaults()
67 assertSame(defaultThread.getThreadGroup(), thread.getThreadGroup()); in testThreadFactoryBuilder_defaults()
68 assertSame(defaultThread.getUncaughtExceptionHandler(), thread.getUncaughtExceptionHandler()); in testThreadFactoryBuilder_defaults()
71 thread.start(); in testThreadFactoryBuilder_defaults()
[all …]
/external/pigweed/pw_thread_embos/
Ddocs.rst12 Thread Creation Backend
14 A backend or ``pw::thread::Thread`` is offered using ``OS_CreateTaskEx()``.
15 Optional joining support is enabled via an ``OS_EVENT`` in each thread's
19 allocated and passed in as an option. As a quick example, a detached thread
31 pw::thread::embos::config::kDefaultPriority;
33 pw::thread::embos::config::kDefaultTimeSliceInterval;
35 pw::thread::embos::config::kDefaultStackSizeWords;
37 pw::thread::embos::ContextWithStack<kFooStackSizeWords>
40 pw::thread::DetachedThread(
41 pw::thread::embos::Options()
[all …]
/external/cronet/base/threading/
Dthread.h32 // IMPORTANT: Instead of creating a base::Thread, consider using
35 // A simple thread abstraction that establishes a MessageLoop on a new thread.
36 // The consumer uses the MessageLoop of the thread to cause code to execute on
37 // the thread. When this object is destroyed the thread is terminated. All
38 // pending tasks queued on the thread's message loop will run to completion
39 // before the thread is terminated.
41 // WARNING! SUBCLASSES MUST CALL Stop() IN THEIR DESTRUCTORS! See ~Thread().
43 // After the thread is stopped, the destruction sequence is:
45 // (1) Thread::CleanUp()
49 // This API is not thread-safe: unless indicated otherwise its methods are only
[all …]

12345678910>>...456