Home | History | Annotate | Download | only in ports

Lines Matching refs:status

28 static void print_pthread_error(int status)
30 switch (status) {
34 printf("pthread error [%d] EINVAL\n", status);
37 printf("pthread error [%d] EBUSY\n", status);
40 printf("pthread error [%d] unknown\n", status);
53 int status;
56 status = pthread_mutexattr_init(&attr);
57 print_pthread_error(status);
58 SkASSERT(0 == status);
60 status = pthread_mutex_init((pthread_mutex_t*)fStorage, &attr);
61 print_pthread_error(status);
62 SkASSERT(0 == status);
67 int status = pthread_mutex_destroy((pthread_mutex_t*)fStorage);
72 print_pthread_error(status);
73 SkASSERT(0 == status);
79 int status = pthread_mutex_lock((pthread_mutex_t*)fStorage);
80 print_pthread_error(status);
81 SkASSERT(0 == status);
86 int status = pthread_mutex_unlock((pthread_mutex_t*)fStorage);
87 print_pthread_error(status);
88 SkASSERT(0 == status);