HomeSort by relevance Sort by last modified time
    Searched defs:mx (Results 1 - 25 of 60) sorted by null

1 2 3

  /external/chromium_org/native_client_sdk/src/libraries/third_party/pthreads-win32/
pthread_mutex_destroy.c 45 pthread_mutex_t mx; local
56 mx = *mutex;
58 result = pthread_mutex_trylock (&mx);
66 if (mx->kind != PTHREAD_MUTEX_RECURSIVE || 1 == mx->recursive_count)
77 result = (0 == result)?pthread_mutex_unlock(&mx):0;
81 if (mx->robustNode != NULL)
83 free(mx->robustNode);
85 if (!CloseHandle (mx->event))
87 *mutex = mx;
    [all...]
pthread_mutex_init.c 45 pthread_mutex_t mx; local
76 mx = (pthread_mutex_t) calloc (1, sizeof (*mx));
78 if (mx == NULL)
84 mx->lock_idx = 0;
85 mx->recursive_count = 0;
86 mx->robustNode = NULL;
89 mx->kind = PTHREAD_MUTEX_DEFAULT;
93 mx->kind = (*attr)->kind;
103 mx->kind = -mx->kind - 1
    [all...]
pthread_mutex_lock.c 47 pthread_mutex_t mx; local
72 mx = *mutex;
73 kind = mx->kind;
81 (PTW32_INTERLOCKED_LONGPTR) &mx->lock_idx,
85 (PTW32_INTERLOCKED_LONGPTR) &mx->lock_idx,
88 if (WAIT_OBJECT_0 != WaitForSingleObject (mx->event, INFINITE))
101 (PTW32_INTERLOCKED_LONGPTR) &mx->lock_idx,
105 mx->recursive_count = 1;
106 mx->ownerThread = self;
110 if (pthread_equal (mx->ownerThread, self)
    [all...]
pthread_mutex_trylock.c 44 pthread_mutex_t mx; local
66 mx = *mutex;
67 kind = mx->kind;
73 (PTW32_INTERLOCKED_LONGPTR) &mx->lock_idx,
79 mx->recursive_count = 1;
80 mx->ownerThread = pthread_self ();
86 pthread_equal (mx->ownerThread, pthread_self ()))
88 mx->recursive_count++;
104 ptw32_robust_state_t* statePtr = &mx->robustNode->stateInconsistent;
118 (PTW32_INTERLOCKED_LONGPTR) &mx->lock_idx
    [all...]
pthread_mutex_unlock.c 46 pthread_mutex_t mx; local
52 mx = *mutex;
59 if (mx < PTHREAD_ERRORCHECK_MUTEX_INITIALIZER)
61 kind = mx->kind;
69 idx = (LONG) PTW32_INTERLOCKED_EXCHANGE_LONG ((PTW32_INTERLOCKED_LONGPTR)&mx->lock_idx,
78 if (SetEvent (mx->event) == 0)
87 if (pthread_equal (mx->ownerThread, pthread_self()))
90 || 0 == --mx->recursive_count)
92 mx->ownerThread.p = NULL;
94 if ((LONG) PTW32_INTERLOCKED_EXCHANGE_LONG ((PTW32_INTERLOCKED_LONGPTR)&mx->lock_idx
    [all...]
pthread_mutex_consistent.c 80 pthread_mutex_t mx = *mutex; local
81 ptw32_robust_node_t* robust = mx->robustNode;
119 pthread_mutex_t mx = *mutex; local
121 ptw32_robust_node_t* robust = mx->robustNode;
124 mx->ownerThread = self;
145 pthread_mutex_t mx = *mutex; local
146 ptw32_robust_node_t* robust = mx->robustNode;
148 list = &(((ptw32_thread_t*)mx->ownerThread.p)->robustMxList);
149 mx->ownerThread.p = otp;
168 pthread_mutex_t mx = *mutex local
    [all...]
pthread_mutex_timedlock.c 112 pthread_mutex_t mx; local
134 mx = *mutex;
135 kind = mx->kind;
139 if (mx->kind == PTHREAD_MUTEX_NORMAL)
142 (PTW32_INTERLOCKED_LONGPTR) &mx->lock_idx,
146 (PTW32_INTERLOCKED_LONGPTR) &mx->lock_idx,
149 if (0 != (result = ptw32_timed_eventwait (mx->event, abstime)))
161 (PTW32_INTERLOCKED_LONGPTR) &mx->lock_idx,
165 mx->recursive_count = 1;
166 mx->ownerThread = self
    [all...]
pthread_win32_attach_detach_np.c 226 pthread_mutex_t mx = sp->robustMxList->mx; local
227 ptw32_robust_mutex_remove(&mx, sp);
229 (PTW32_INTERLOCKED_LONGPTR)&mx->robustNode->stateInconsistent,
236 SetEvent(mx->event);
  /external/valgrind/main/none/tests/
pth_mutexspeed.c 10 pthread_mutex_t mx = PTHREAD_MUTEX_INITIALIZER; local
13 r = pthread_mutex_lock(&mx);
14 r |= pthread_mutex_unlock(&mx);
  /external/valgrind/main/helgrind/tests/
hg01_all_ok.c 5 static pthread_mutex_t mx = PTHREAD_MUTEX_INITIALIZER; variable
11 pthread_mutex_lock(&mx);
13 pthread_mutex_unlock(&mx);
22 pthread_mutex_lock(&mx);
23 pthread_mutex_unlock(&mx);
locked_vs_unlocked1.c 12 pthread_mutex_t mx = PTHREAD_MUTEX_INITIALIZER; variable
18 if (arg) pthread_mutex_lock(&mx);
20 if (arg) pthread_mutex_unlock(&mx);
locked_vs_unlocked3.c 19 pthread_mutex_t mx; variable
26 r= pthread_mutex_lock(&mx); assert(!r);
27 r= pthread_mutex_lock(&mx); assert(!r);
29 r= pthread_mutex_unlock(&mx); assert(!r);
30 r= pthread_mutex_unlock(&mx); assert(!r);
51 r= pthread_mutex_init(&mx, &attr); assert(!r);
59 r= pthread_mutex_destroy(&mx); assert(!r);
tc04_free_lock.c 36 pthread_mutex_t mx = PTHREAD_MUTEX_INITIALIZER; local
37 // pthread_mutex_init( &mx, NULL );
38 pthread_mutex_lock( &mx );
39 /* now just abandon mx */
45 pthread_mutex_t mx; local
46 pthread_mutex_init( &mx, NULL );
47 pthread_mutex_lock( &mx );
48 /* now just abandon mx */
tc20_verifywrap.c 44 pthread_mutex_t mx, mx2, mx3, mx4; local
92 r= pthread_mutex_init( &mx, &mxa );
tc23_bogus_condwait.c 10 pthread_mutex_t mx[4]; variable
40 int r= pthread_mutex_lock( &mx[2] ); assert(!r);
42 r= pthread_mutex_unlock( &mx[2] ); assert(!r);
51 r= pthread_mutex_init(&mx[0], NULL); assert(!r);
52 r= pthread_mutex_init(&mx[1], NULL); assert(!r);
53 r= pthread_mutex_init(&mx[2], NULL); assert(!r);
54 r= pthread_mutex_init(&mx[3], NULL); assert(!r);
68 /* mx is bogus */
69 r= pthread_cond_wait(&cv, (pthread_mutex_t*)(4 + (char*)&mx[0]) );
71 /* mx is not locked *
    [all...]
tc19_shadowmem.c 19 pthread_mutex_t mx; variable
37 r= pthread_mutex_lock( &mx ); assert(!r);
39 r= pthread_mutex_unlock( &mx ); assert(!r);
61 r= pthread_mutex_lock( &mx ); assert(!r);
63 r= pthread_mutex_unlock( &mx ); assert(!r);
85 r= pthread_mutex_lock( &mx ); assert(!r);
87 r= pthread_mutex_unlock( &mx ); assert(!r);
109 r= pthread_mutex_lock( &mx ); assert(!r);
111 r= pthread_mutex_unlock( &mx ); assert(!r);
142 pthread_mutex_init( &mx, NULL )
    [all...]
  /external/chromium_org/third_party/sqlite/src/src/
test_loadext.c 37 int op, mx, cur, resetFlag, rc; local
77 rc = sqlite3_status(op, &cur, &mx, resetFlag);
85 sqlite3_result_int(context, mx);
  /external/eigen/unsupported/Eigen/src/MatrixFunctions/
MatrixFunctionAtomic.h 115 RealScalar mx = 0; local
117 mx = (std::max)(mx, std::abs(m_f(m_Ashifted(i, i) + m_avgEival, static_cast<int>(s+r))));
120 delta = (std::max)(delta, mx / rfactorial);
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
SelectionHandles.java 103 int mx = (x1 + x2) / 2; local
125 mHandles.add(new SelectionHandle(mx, y1, Position.TOP_MIDDLE));
128 mHandles.add(new SelectionHandle(mx, y2, Position.BOTTOM_MIDDLE));
  /packages/experimental/DreamTheater/src/com/android/dreamtheater/
BouncyDroid.java 379 Matrix mx = new Matrix(); local
380 mx.setSinCos(-vx/mag, vy/mag);
381 mx.postTranslate(x, y);
382 canvas.setMatrix(mx);
  /external/apache-xml/src/main/java/org/apache/xml/serializer/
Encodings.java 163 final int mx = s.length(); local
164 char[] chars = new char[mx];
165 for (int i=0; i < mx; i++) {
  /external/chromium_org/third_party/openssl/openssl/crypto/
ex_data.c 405 int mx,i; local
414 mx = sk_CRYPTO_EX_DATA_FUNCS_num(item->meth);
415 if(mx > 0)
417 storage = OPENSSL_malloc(mx * sizeof(CRYPTO_EX_DATA_FUNCS*));
420 for(i = 0; i < mx; i++)
425 if((mx > 0) && !storage)
430 for(i = 0; i < mx; i++)
448 int mx, j, i; local
458 mx = sk_CRYPTO_EX_DATA_FUNCS_num(item->meth);
460 if(j < mx)
494 int mx,i; local
    [all...]
  /external/chromium_org/third_party/sqlite/src/ext/fts1/
fts1_porter.c 294 int i, mx, j; local
305 mx = hasDigit ? 3 : 10;
306 if( nIn>mx*2 ){
307 for(j=mx, i=nIn-mx; i<nIn; i++, j++){
  /external/chromium_org/third_party/sqlite/src/ext/fts2/
fts2_porter.c 293 int i, mx, j; local
304 mx = hasDigit ? 3 : 10;
305 if( nIn>mx*2 ){
306 for(j=mx, i=nIn-mx; i<nIn; i++, j++){
  /external/chromium_org/third_party/sqlite/src/ext/fts3/
fts3_porter.c 296 int i, mx, j; local
307 mx = hasDigit ? 3 : 10;
308 if( nIn>mx*2 ){
309 for(j=mx, i=nIn-mx; i<nIn; i++, j++){

Completed in 3613 milliseconds

1 2 3