Home
last modified time | relevance | path

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

12345678910>>...429

/external/angle/src/libGLESv2/
Degl_ext_stubs.cpp15 #include "libANGLE/Thread.h"
22 EGLint ClientWaitSyncKHR(Thread *thread, in ClientWaitSyncKHR() argument
28 ANGLE_EGL_TRY_RETURN(thread, display->prepareForCall(), "eglClientWaitSync", in ClientWaitSyncKHR()
30 gl::Context *currentContext = thread->getContext(); in ClientWaitSyncKHR()
33 thread, syncObject->clientWait(display, currentContext, flags, timeout, &syncStatus), in ClientWaitSyncKHR()
36 thread->setSuccess(); in ClientWaitSyncKHR()
40 EGLImageKHR CreateImageKHR(Thread *thread, in CreateImageKHR() argument
47 ANGLE_EGL_TRY_RETURN(thread, display->prepareForCall(), "eglCreateImageKHR", in CreateImageKHR()
50 ANGLE_EGL_TRY_RETURN(thread, display->createImage(context, target, buffer, attributes, &image), in CreateImageKHR()
53 thread->setSuccess(); in CreateImageKHR()
[all …]
Degl_ext_stubs_autogen.h32 class Thread; variable
35 EGLint ClientWaitSyncKHR(Thread *thread,
40 EGLImageKHR CreateImageKHR(Thread *thread,
46 EGLClientBuffer CreateNativeClientBufferANDROID(Thread *thread,
48 EGLSurface CreatePlatformPixmapSurfaceEXT(Thread *thread,
53 EGLSurface CreatePlatformWindowSurfaceEXT(Thread *thread,
58 EGLStreamKHR CreateStreamKHR(Thread *thread,
61 EGLSyncKHR CreateSyncKHR(Thread *thread,
65 EGLint DebugMessageControlKHR(Thread *thread,
68 EGLBoolean DestroyImageKHR(Thread *thread, egl::Display *dpyPacked, Image *imagePacked);
[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, Surface *eglSurface, EGLint buffer) in BindTexImage() argument
60 ANGLE_EGL_TRY_RETURN(thread, display->prepareForCall(), "eglBindTexImage", in BindTexImage()
63 gl::Context *context = thread->getContext(); in BindTexImage()
69 ANGLE_EGL_TRY_RETURN(thread, eglSurface->bindTexImage(context, textureObject, buffer), in BindTexImage()
73 thread->setSuccess(); in BindTexImage()
77 EGLBoolean ChooseConfig(Thread *thread, in ChooseConfig() argument
[all …]
Degl_stubs_autogen.h32 class Thread; variable
35 EGLBoolean BindAPI(Thread *thread, EGLenum api);
36 EGLBoolean BindTexImage(Thread *thread,
40 EGLBoolean ChooseConfig(Thread *thread,
46 EGLint ClientWaitSync(Thread *thread,
51 EGLBoolean CopyBuffers(Thread *thread,
55 EGLContext CreateContext(Thread *thread,
60 EGLImage CreateImage(Thread *thread,
66 EGLSurface CreatePbufferFromClientBuffer(Thread *thread,
72 EGLSurface CreatePbufferSurface(Thread *thread,
[all …]
Dentry_points_egl_autogen.cpp36 Thread *thread = egl::GetCurrentThread(); in EGL_ChooseConfig() local
41 ANGLE_EGL_VALIDATE(thread, ChooseConfig, GetDisplayIfValid(dpyPacked), EGLBoolean, dpyPacked, in EGL_ChooseConfig()
44 return ChooseConfig(thread, dpyPacked, attrib_listPacked, configs, config_size, num_config); in EGL_ChooseConfig()
56 Thread *thread = egl::GetCurrentThread(); in EGL_CopyBuffers() local
61 ANGLE_EGL_VALIDATE(thread, CopyBuffers, GetDisplayIfValid(dpyPacked), EGLBoolean, dpyPacked, in EGL_CopyBuffers()
64 return CopyBuffers(thread, dpyPacked, surfacePacked, target); in EGL_CopyBuffers()
78 Thread *thread = egl::GetCurrentThread(); in EGL_CreateContext() local
85 ANGLE_EGL_VALIDATE(thread, CreateContext, GetDisplayIfValid(dpyPacked), EGLContext, dpyPacked, in EGL_CreateContext()
88 return CreateContext(thread, dpyPacked, configPacked, share_contextPacked, attrib_listPacked); in EGL_CreateContext()
101 Thread *thread = egl::GetCurrentThread(); in EGL_CreatePbufferSurface() local
[all …]
Dentry_points_egl_ext_autogen.cpp32 Thread *thread = egl::GetCurrentThread(); in EGL_SetBlobCacheFuncsANDROID() local
36 ANGLE_EGL_VALIDATE_VOID(thread, SetBlobCacheFuncsANDROID, GetDisplayIfValid(dpyPacked), in EGL_SetBlobCacheFuncsANDROID()
39 SetBlobCacheFuncsANDROID(thread, dpyPacked, set, get); in EGL_SetBlobCacheFuncsANDROID()
49 Thread *thread = egl::GetCurrentThread(); in EGL_CreateNativeClientBufferANDROID() local
53 ANGLE_EGL_VALIDATE(thread, CreateNativeClientBufferANDROID, nullptr, EGLClientBuffer, in EGL_CreateNativeClientBufferANDROID()
56 return CreateNativeClientBufferANDROID(thread, attrib_listPacked); in EGL_CreateNativeClientBufferANDROID()
69 Thread *thread = egl::GetCurrentThread(); in EGL_GetCompositorTimingSupportedANDROID() local
75 ANGLE_EGL_VALIDATE(thread, GetCompositorTimingSupportedANDROID, GetDisplayIfValid(dpyPacked), in EGL_GetCompositorTimingSupportedANDROID()
78 return GetCompositorTimingSupportedANDROID(thread, dpyPacked, surfacePacked, namePacked); in EGL_GetCompositorTimingSupportedANDROID()
94 Thread *thread = egl::GetCurrentThread(); in EGL_GetCompositorTimingANDROID() local
[all …]
/external/skia/tests/sksl/metal/
DOutParams.metal9 void out_half_vh(thread float& v);
10 void _skOutParamHelper0_out_half_vh(thread float& h) {
15 void out_half2_vh2(thread float2& v);
16 void _skOutParamHelper1_out_half2_vh2(thread float2& h2) {
21 void out_half3_vh3(thread float3& v);
22 void _skOutParamHelper2_out_half3_vh3(thread float3& h3) {
27 void out_half4_vh4(thread float4& v);
28 void _skOutParamHelper3_out_half4_vh4(thread float4& h4) {
33 void out_half_vh(thread float& v);
34 void _skOutParamHelper4_out_half_vh(thread float3& 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/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 // through the Thread API.
39 // Options must not contain any memory needed for a thread to run (TCB,
41 // starting a thread.
47 // The class Thread can represent a single thread of execution. Threads allow
51 // thread object (pending any OS scheduling delays), starting at the top-level
57 // Thread objects may also be in the state that does not represent any thread
[all …]
/external/skia/tests/sksl/shared/
DOutParams.metal14 void out_half_vh(Uniforms _uniforms, thread float& v);
15 void _skOutParamHelper0_out_half_vh(Uniforms _uniforms, thread float& h) {
20 void out_half2_vh2(Uniforms _uniforms, thread float2& v);
21 void _skOutParamHelper1_out_half2_vh2(Uniforms _uniforms, thread float2& h2) {
26 void out_half3_vh3(Uniforms _uniforms, thread float3& v);
27 void _skOutParamHelper2_out_half3_vh3(Uniforms _uniforms, thread float3& h3) {
32 void out_half4_vh4(Uniforms _uniforms, thread float4& v);
33 void _skOutParamHelper3_out_half4_vh4(Uniforms _uniforms, thread float4& h4) {
38 void out_half_vh(Uniforms _uniforms, thread float& v);
39 void _skOutParamHelper4_out_half_vh(Uniforms _uniforms, thread float3& h3) {
[all …]
DOutParamsNoInline.metal14 void out_half_vh(Uniforms _uniforms, thread float& v);
15 void _skOutParamHelper0_out_half_vh(Uniforms _uniforms, thread float& h) {
20 void out_half2_vh2(Uniforms _uniforms, thread float2& v);
21 void _skOutParamHelper1_out_half2_vh2(Uniforms _uniforms, thread float2& h2) {
26 void out_half3_vh3(Uniforms _uniforms, thread float3& v);
27 void _skOutParamHelper2_out_half3_vh3(Uniforms _uniforms, thread float3& h3) {
32 void out_half4_vh4(Uniforms _uniforms, thread float4& v);
33 void _skOutParamHelper3_out_half4_vh4(Uniforms _uniforms, thread float4& h4) {
38 void out_half_vh(Uniforms _uniforms, thread float& v);
39 void _skOutParamHelper4_out_half_vh(Uniforms _uniforms, thread float3& h3) {
[all …]
/external/pigweed/pw_thread/
Ddocs.rst6 The ``pw_thread`` module contains utilities for thread creation and thread
17 Thread Creation
19 The class ``pw::thread::Thread`` can represent a single thread of execution.
22 The Thread's API is C++11 STL
23 `std::thread <https://en.cppreference.com/w/cpp/thread/thread>`_ like, meaning
24 the object is effectively a thread handle and not an object which contains the
25 thread's context. Unlike ``std::thread``, the API requires
26 ``pw::thread::Options`` as an argument and is limited to only work with
27 ``pw::thread::ThreadCore`` objects and functions which match the
28 ``pw::thread::Thread::ThreadRoutine`` signature.
[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/rust/crates/thread_local/src/
Dthread_id.rs15 /// Thread ID manager which allocates thread IDs. It attempts to aggressively
16 /// reuse thread IDs where possible to avoid cases where a ThreadLocal grows
37 .expect("Ran out of thread IDs"); in alloc()
48 /// Data which is unique to the current thread while it is running.
49 /// A thread ID may be reused after a thread exits.
51 pub(crate) struct Thread { struct
52 /// The thread ID obtained from the thread ID manager.
54 /// The bucket this thread's local storage will be in.
56 /// The size of the bucket this thread's local storage will be in.
58 /// The index into the bucket this thread's local storage is in.
[all …]
/external/llvm-project/lldb/test/API/functionalities/thread/state/
DTestThreadStates.py2 Test thread states.
20 bugnumber="llvm.org/pr15824 thread states not properly maintained")
21 …@skipIfDarwin # llvm.org/pr15824 thread states not properly maintained and <rdar://problem/2855723…
24 bugnumber="llvm.org/pr18190 thread states not properly maintained")
27 """Test thread state after breakpoint."""
37 """Test thread state after continue."""
45 # thread states not properly maintained
48 """Test thread state after expression."""
52 # thread states not properly maintained
57 …@skipIfDarwin # llvm.org/pr15824 thread states not properly maintained and <rdar://problem/2855723…
[all …]
/external/webrtc/rtc_base/
Dthread_unittest.cc11 #include "rtc_base/thread.h"
67 Thread* post_thread, in SocketClient()
94 Thread* post_thread_;
101 MessageClient(Thread* pth, Socket* socket) : socket_(socket) {} in MessageClient()
116 class CustomThread : public rtc::Thread {
119 : Thread(std::unique_ptr<SocketServer>(new rtc::NullSocketServer())) {} in CustomThread()
123 bool WrapCurrent() { return Thread::WrapCurrent(); } in WrapCurrent()
124 void UnwrapCurrent() { Thread::UnwrapCurrent(); } in UnwrapCurrent()
127 // A thread that does nothing when it runs and signals an event
129 class SignalWhenDestroyedThread : public Thread {
[all …]
Dthread.cc11 #include "rtc_base/thread.h"
123 void ThreadManager::Add(Thread* message_queue) { in Add()
126 void ThreadManager::AddInternal(Thread* message_queue) { in AddInternal()
134 void ThreadManager::Remove(Thread* message_queue) { in Remove()
137 void ThreadManager::RemoveInternal(Thread* message_queue) { in RemoveInternal()
142 std::vector<Thread*>::iterator iter; in RemoveInternal()
154 void ThreadManager::RemoveFromSendGraph(Thread* thread) { in RemoveFromSendGraph() argument
156 if (it->first == thread) { in RemoveFromSendGraph()
159 it->second.erase(thread); in RemoveFromSendGraph()
165 void ThreadManager::RegisterSendAndCheckForCycles(Thread* source, in RegisterSendAndCheckForCycles()
[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/adhd/cras/src/server/
Daudio_thread.c47 /* Messages that can be sent from the main context to the audio thread. */
114 /* Audio thread logging. If atlog is successfully created from cras_shm_setup,
115 * then the fds should have valid value. Or audio thread will fallback to use
181 /* Sends a response (error code) from the audio thread to the main thread.
182 * Indicates that the last message sent to the audio thread has been handled
185 * thread - thread responding to command.
186 * rc - Result code to send back to the main thread.
188 * The number of bytes written to the main thread.
190 static int audio_thread_send_response(struct audio_thread *thread, int rc) in audio_thread_send_response() argument
192 return write(thread->to_main_fds[1], &rc, sizeof(rc)); in audio_thread_send_response()
[all …]
Daudio_thread.h22 /* Hold communication pipes and pthread info for the thread used to play or
24 * to_thread_fds - Send a message from main to running thread.
25 * to_main_fds - Send a synchronous response to main from running thread.
26 * tid - Thread ID of the running playback/capture thread.
27 * started - Non-zero if the thread has started successfully.
28 * suspended - Non-zero if the thread is suspended.
30 * pollfds - What FDs wake up this thread.
52 * TRIGGER_WAKEUP - Triggered everytime when audio thread wakes up.
60 /* Callback function to be handled in main loop in audio thread.
67 /* Creates an audio thread.
[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/libchrome/base/threading/
Dplatform_thread_unittest.cc22 // Trivial tests that thread runs and doesn't crash on create, join, or detach -
44 TrivialThread thread; in TEST() local
47 ASSERT_FALSE(thread.run_event().IsSignaled()); in TEST()
48 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); in TEST()
50 ASSERT_TRUE(thread.run_event().IsSignaled()); in TEST()
54 TrivialThread thread[10]; in TEST() local
55 PlatformThreadHandle handle[arraysize(thread)]; in TEST()
57 for (size_t n = 0; n < arraysize(thread); n++) in TEST()
58 ASSERT_FALSE(thread[n].run_event().IsSignaled()); in TEST()
59 for (size_t n = 0; n < arraysize(thread); n++) in TEST()
[all …]
Dthread.h31 // IMPORTANT: Instead of creating a base::Thread, consider using
34 // A simple thread abstraction that establishes a MessageLoop on a new thread.
35 // The consumer uses the MessageLoop of the thread to cause code to execute on
36 // the thread. When this object is destroyed the thread is terminated. All
37 // pending tasks queued on the thread's message loop will run to completion
38 // before the thread is terminated.
40 // WARNING! SUBCLASSES MUST CALL Stop() IN THEIR DESTRUCTORS! See ~Thread().
42 // After the thread is stopped, the destruction sequence is:
44 // (1) Thread::CleanUp()
48 // This API is not thread-safe: unless indicated otherwise its methods are only
[all …]
/external/llvm-project/lldb/test/API/functionalities/plugins/python_os_plugin/
DTestPythonOSPlugin.py24 …st that the Python operating system plugin works correctly when single stepping a virtual thread"""
28 def verify_os_thread_registers(self, thread): argument
29 frame = thread.GetFrameAtIndex(0)
31 reg_value = thread.GetThreadID() + 1
65 # Make sure there are no OS plug-in created thread when we first stop
67 thread = process.GetThreadByID(0x111111111)
69 thread.IsValid(),
70 "Make sure there is no thread 0x111111111 before we load the python OS plug-in")
71 thread = process.GetThreadByID(0x222222222)
73 thread.IsValid(),
[all …]

12345678910>>...429