150 PJ_THREAD_SUSPENDED = 1
162#if !defined(PJ_THREAD_DESC_SIZE)
163# define PJ_THREAD_DESC_SIZE (64)
198 const char *thread_name,
355#if defined(PJ_OS_HAS_CHECK_STACK) && PJ_OS_HAS_CHECK_STACK!=0
357# define PJ_CHECK_STACK() pj_thread_check_stack(__FILE__, __LINE__)
362PJ_DECL(
void) pj_thread_check_stack(
const char *file,
int line);
377# define PJ_CHECK_STACK()
379# define pj_thread_get_stack_max_usage(thread) 0
381# define pj_thread_get_stack_info(thread,f,l) (*(f)="",*(l)=0)
893#if defined(PJ_HAS_SEMAPHORE) && PJ_HAS_SEMAPHORE != 0
962#if defined(PJ_HAS_EVENT_OBJ) && PJ_HAS_EVENT_OBJ != 0
1119#if defined(PJ_TERM_HAS_COLOR) && PJ_TERM_HAS_COLOR != 0
1173#if defined(PJ_HAS_HIGH_RES_TIMER) && PJ_HAS_HIGH_RES_TIMER != 0
1226 if (t1->u64 < t2->u64)
1228 else if (t1->u64 > t2->u64)
1258 if (t1->
u32.
lo < old)
1275 if (t1->
u32.
lo < old)
1310 if (t1->
u32.
lo >= t2)
1328 pj_int64_t diff = t2->u64 - t1->u64;
int pj_run_app(pj_main_func_ptr main_func, int argc, char *argv[], unsigned flags)
int(* pj_main_func_ptr)(int argc, char *argv[])
Definition: os.h:1449
pj_status_t pj_atomic_create(pj_pool_t *pool, pj_atomic_value_t initial, pj_atomic_t **atomic)
void pj_atomic_inc(pj_atomic_t *atomic_var)
pj_atomic_value_t pj_atomic_dec_and_get(pj_atomic_t *atomic_var)
pj_status_t pj_atomic_destroy(pj_atomic_t *atomic_var)
void pj_atomic_add(pj_atomic_t *atomic_var, pj_atomic_value_t value)
void pj_atomic_dec(pj_atomic_t *atomic_var)
pj_atomic_value_t pj_atomic_inc_and_get(pj_atomic_t *atomic_var)
pj_atomic_value_t pj_atomic_add_and_get(pj_atomic_t *atomic_var, pj_atomic_value_t value)
pj_atomic_value_t pj_atomic_get(pj_atomic_t *atomic_var)
void pj_atomic_set(pj_atomic_t *atomic_var, pj_atomic_value_t value)
int pj_bool_t
Definition: types.h:71
struct pj_mutex_t pj_mutex_t
Definition: types.h:245
struct pj_sem_t pj_sem_t
Definition: types.h:248
PJ_ATOMIC_VALUE_TYPE pj_atomic_value_t
Definition: types.h:231
struct pj_atomic_t pj_atomic_t
Definition: types.h:226
size_t pj_size_t
Definition: types.h:58
struct pj_event_t pj_event_t
Definition: types.h:251
int pj_status_t
Definition: types.h:68
int pj_int32_t
Definition: types.h:40
struct pj_thread_t pj_thread_t
Definition: types.h:236
unsigned int pj_color_t
Definition: types.h:273
unsigned int pj_uint32_t
Definition: types.h:43
void pj_leave_critical_section(void)
void pj_enter_critical_section(void)
pj_status_t pj_event_destroy(pj_event_t *event)
pj_status_t pj_event_create(pj_pool_t *pool, const char *name, pj_bool_t manual_reset, pj_bool_t initial, pj_event_t **event)
pj_status_t pj_event_reset(pj_event_t *event)
pj_status_t pj_event_wait(pj_event_t *event)
pj_status_t pj_event_pulse(pj_event_t *event)
pj_status_t pj_event_trywait(pj_event_t *event)
pj_status_t pj_event_set(pj_event_t *event)
pj_status_t pj_mutex_create(pj_pool_t *pool, const char *name, int type, pj_mutex_t **mutex)
pj_status_t pj_mutex_unlock(pj_mutex_t *mutex)
pj_status_t pj_mutex_create_recursive(pj_pool_t *pool, const char *name, pj_mutex_t **mutex)
pj_mutex_type_e
Definition: os.h:686
pj_status_t pj_mutex_lock(pj_mutex_t *mutex)
pj_status_t pj_mutex_destroy(pj_mutex_t *mutex)
pj_status_t pj_mutex_trylock(pj_mutex_t *mutex)
pj_status_t pj_mutex_create_simple(pj_pool_t *pool, const char *name, pj_mutex_t **mutex)
pj_bool_t pj_mutex_is_locked(pj_mutex_t *mutex)
pj_status_t pj_rwmutex_destroy(pj_rwmutex_t *mutex)
pj_status_t pj_rwmutex_create(pj_pool_t *pool, const char *name, pj_rwmutex_t **mutex)
struct pj_rwmutex_t pj_rwmutex_t
Definition: os.h:798
pj_status_t pj_rwmutex_lock_write(pj_rwmutex_t *mutex)
pj_status_t pj_rwmutex_lock_read(pj_rwmutex_t *mutex)
pj_status_t pj_rwmutex_unlock_read(pj_rwmutex_t *mutex)
pj_status_t pj_rwmutex_unlock_write(pj_rwmutex_t *mutex)
pj_status_t pj_sem_create(pj_pool_t *pool, const char *name, unsigned initial, unsigned max, pj_sem_t **sem)
pj_status_t pj_sem_post(pj_sem_t *sem)
pj_status_t pj_sem_wait(pj_sem_t *sem)
pj_status_t pj_sem_destroy(pj_sem_t *sem)
pj_status_t pj_sem_trywait(pj_sem_t *sem)
pj_bool_t pj_symbianos_poll(int priority, int ms_timeout)
pj_status_t pj_symbianos_set_params(pj_symbianos_params *prm)
void pj_symbianos_set_connection_status(pj_bool_t up)
const pj_sys_info * pj_get_sys_info(void)
pj_sys_info_flag
Definition: os.h:47
@ PJ_SYS_HAS_IOS_BG
Definition: os.h:51
#define pj_thread_get_stack_info(thread, f, l)
Definition: os.h:381
int pj_thread_get_prio_min(pj_thread_t *thread)
long pj_thread_desc[(64)]
Definition: os.h:170
pj_status_t pj_thread_resume(pj_thread_t *thread)
#define pj_thread_get_stack_max_usage(thread)
Definition: os.h:379
int() pj_thread_proc(void *)
Definition: os.h:157
pj_status_t pj_thread_destroy(pj_thread_t *thread)
void * pj_thread_get_os_handle(pj_thread_t *thread)
pj_status_t pj_thread_register(const char *thread_name, pj_thread_desc desc, pj_thread_t **thread)
pj_status_t pj_thread_join(pj_thread_t *thread)
pj_thread_t * pj_thread_this(void)
pj_status_t pj_thread_set_prio(pj_thread_t *thread, int prio)
const char * pj_thread_get_name(pj_thread_t *thread)
pj_status_t pj_thread_create(pj_pool_t *pool, const char *thread_name, pj_thread_proc *proc, void *arg, pj_size_t stack_size, unsigned flags, pj_thread_t **thread)
pj_thread_create_flags
Definition: os.h:149
pj_bool_t pj_thread_is_registered(void)
int pj_thread_get_prio(pj_thread_t *thread)
pj_status_t pj_thread_sleep(unsigned msec)
#define PJ_THREAD_DESC_SIZE
Definition: os.h:163
int pj_thread_get_prio_max(pj_thread_t *thread)
pj_uint32_t pj_getpid(void)
pj_status_t pj_get_timestamp_freq(pj_timestamp *freq)
pj_uint32_t pj_elapsed_nanosec(const pj_timestamp *start, const pj_timestamp *stop)
pj_status_t pj_gettickcount(pj_time_val *tv)
pj_uint32_t pj_elapsed_msec(const pj_timestamp *start, const pj_timestamp *stop)
void pj_add_timestamp(pj_timestamp *t1, const pj_timestamp *t2)
Definition: os.h:1250
void pj_add_timestamp32(pj_timestamp *t1, pj_uint32_t t2)
Definition: os.h:1268
void pj_set_timestamp32(pj_timestamp *t, pj_uint32_t hi, pj_uint32_t lo)
Definition: os.h:1209
pj_status_t pj_get_timestamp(pj_timestamp *ts)
pj_int32_t pj_timestamp_diff32(const pj_timestamp *t1, const pj_timestamp *t2)
Definition: os.h:1323
pj_uint32_t pj_elapsed_cycle(const pj_timestamp *start, const pj_timestamp *stop)
void pj_sub_timestamp(pj_timestamp *t1, const pj_timestamp *t2)
Definition: os.h:1285
void pj_sub_timestamp32(pj_timestamp *t1, pj_uint32_t t2)
Definition: os.h:1305
pj_time_val pj_elapsed_time(const pj_timestamp *start, const pj_timestamp *stop)
pj_uint32_t pj_elapsed_usec(const pj_timestamp *start, const pj_timestamp *stop)
int pj_cmp_timestamp(const pj_timestamp *t1, const pj_timestamp *t2)
Definition: os.h:1223
pj_uint64_t pj_elapsed_msec64(const pj_timestamp *start, const pj_timestamp *stop)
pj_status_t pj_gettimeofday(pj_time_val *tv)
pj_status_t pj_time_encode(const pj_parsed_time *pt, pj_time_val *tv)
pj_status_t pj_time_local_to_gmt(pj_time_val *tv)
pj_status_t pj_time_gmt_to_local(pj_time_val *tv)
pj_status_t pj_time_decode(const pj_time_val *tv, pj_parsed_time *pt)
pj_status_t pj_thread_local_set(long index, void *value)
pj_status_t pj_thread_local_alloc(long *index)
void pj_thread_local_free(long index)
void * pj_thread_local_get(long index)
#define PJ_BEGIN_DECL
Definition: config.h:1284
#define PJ_INLINE(type)
Definition: config.h:1178
#define PJ_END_DECL
Definition: config.h:1285
pj_status_t pj_thread_init(void)
void * rhostresolver
Definition: os.h:473
void * rconnection
Definition: os.h:466
void * rsocketserv
Definition: os.h:459
void * rhostresolver6
Definition: os.h:480
pj_str_t info
Definition: os.h:107
pj_str_t os_name
Definition: os.h:73
pj_uint32_t sdk_ver
Definition: os.h:101
pj_str_t machine
Definition: os.h:66
pj_uint32_t flags
Definition: os.h:113
pj_str_t sdk_name
Definition: os.h:94
pj_uint32_t os_ver
Definition: os.h:87
Declaration of basic types and utility.
pj_uint32_t lo
Definition: types.h:142
pj_uint32_t hi
Definition: types.h:141
struct pj_timestamp::@9 u32