|
Home --> Documentations --> PJLIB Reference
Go to the documentation of this file.
151 PJ_THREAD_SUSPENDED = 1
158 typedef int (PJ_THREAD_FUNC pj_thread_proc)( void*);
163 #if !defined(PJ_THREAD_DESC_SIZE)
164 # define PJ_THREAD_DESC_SIZE (64)
199 const char *thread_name,
200 pj_thread_proc *proc,
351 #if defined(PJ_OS_HAS_CHECK_STACK) && PJ_OS_HAS_CHECK_STACK!=0
353 # define PJ_CHECK_STACK() pj_thread_check_stack(__FILE__, __LINE__)
358 PJ_DECL( void) pj_thread_check_stack(const char *file, int line);
373 # define PJ_CHECK_STACK()
375 # define pj_thread_get_stack_max_usage(thread) 0
377 # define pj_thread_get_stack_info(thread,f,l) (*(f)="",*(l)=0)
806 pj_rwmutex_t **mutex);
889 #if defined(PJ_HAS_SEMAPHORE) && PJ_HAS_SEMAPHORE != 0
958 #if defined(PJ_HAS_EVENT_OBJ) && PJ_HAS_EVENT_OBJ != 0
1115 #if defined(PJ_TERM_HAS_COLOR) && PJ_TERM_HAS_COLOR != 0
1169 #if defined(PJ_HAS_HIGH_RES_TIMER) && PJ_HAS_HIGH_RES_TIMER != 0
1222 if (t1->u64 < t2->u64)
1224 else if (t1->u64 > t2->u64)
1229 if (t1->u32.hi < t2->u32.hi ||
1230 (t1->u32.hi == t2->u32.hi && t1->u32.lo < t2->u32.lo))
1232 else if (t1->u32.hi > t2->u32.hi ||
1233 (t1->u32.hi == t2->u32.hi && t1->u32.lo > t2->u32.lo))
1252 t1->u32.hi += t2->u32.hi;
1253 t1->u32.lo += t2->u32.lo;
1254 if (t1->u32.lo < old)
1271 if (t1->u32.lo < old)
1286 t1->u32.hi -= t2->u32.hi;
1287 if (t1->u32.lo >= t2->u32.lo)
1288 t1->u32.lo -= t2->u32.lo;
1290 t1->u32.lo -= t2->u32.lo;
1306 if (t1->u32.lo >= t2)
1324 pj_int64_t diff = t2->u64 - t1->u64;
1327 pj_int32 diff = t2->u32.lo - t1->u32.lo;
1443 typedef int (*pj_main_func_ptr)( int argc, char *argv[]);
1459 int pj_run_app(pj_main_func_ptr main_func, int argc, char *argv[],
PJLIB Open Source, high performance, small footprint, and very very portable framework
Copyright (C) 2006-2009 Teluu Inc.
|