posix_trace_attr_setlogsize 子常式會使用 logsize 參數指定的大小值,在 attr 物件的 log-max-size 屬性中設定容許的大小上限 (以位元組為單位)。 如果關於串流大小, logsize 參數太小, posix_trace_attr_setlogsize 子常式不會失敗。 它會設定 log-max-size 屬性,以便能夠在日誌檔中至少寫入一個串流。 對...
posix_trace_attr_setstreamsize子例程使用streamsize参数指定的大小值,在attr对象的stream_minsize属性中设置允许的最小大小 (以字节计)。 如果streamsize参数小于所需的最小大小,那么posix_trace_attr_setstreamsize子例程不会失败。 它在stream_minsize属性中设置此最小大小。 对posix_trace_create子例程或posix_trace_...
│ │ ├── pthread_condattr_getclock │ │ ├── pthread_condattr_getpshared │ │ ├── pthread_condattr_init │ │ ├── pthread_condattr_setclock │ │ ├── pthread_condattr_setpshared │ │ ├── pthread_cond_broadcast │ │ ├── pthread_cond_destroy │ │ ├── p...
int posix_trace_attr_getmaxusereventsize( const trace_attr_t *restrictattr, size_tdata_len, size_t *restricteventsize); int posix_trace_attr_getstreamsize(const trace_attr_t *restrictattr, size_t *restrictstreamsize); int posix_trace_attr_setlogsize(trace_attr_t *attr, ...
调用pthread_atfork(),建立fork处理程序,可以清除锁状态。 3.2 进程的终止 进程的终止有两种情况: (1)从main()函数返回时或者执行exit()或_exit()函数时正常的终止; (2)被abort()函数请求或者接受到一些信号时不正常的终止; 1) 等待进程终止 函数原型: ...
rc = pthread_attr_setdetachstate(attr, PTHREAD_CREATE_DETACHED); checkResults(pthread_attr_setdetachstate()\n, rc); printf(Create a thread using the new attributes\n); rc = pthread_create(thread, attr, theThread, NULL); checkResults(pthread_create()\n, rc); printf(Destroy thread attribut...
The posix_trace_attr_getlogsize() function shall copy the log size, in bytes, from the log-max-size attribute of the attributes object pointed to by the attr argument
Posix Trace Library (libposixtrace.a) Syntax #include <trace.h> int posix_trace_attr_setinherited(attr,inheritancepolicy) const trace_attr_t *attr; int *restrictinheritancepolicy; Description Theposix_trace_attr_setinheritedsubroutine sets the inheritance policy stored in theinheritanceattribute of th...
Posix 추적 라이브러리 (libposixtrace.a) 구문 #include <sys/types.h> #include <trace.h> int posix_trace_attr_getmaxusereventsize(attr, data_len, eventsize) const trace_attr_t *restrict attr; size_t data_len; size_t *restrict eventsize; 설명 posix_trace_attr_getma...
posix_trace_attr_getmaxsystemeventsize 子常式會計算儲存單一系統追蹤事件所需的記憶體大小上限 (以位元組為單位)。 大小值是針對 attr 物件的追蹤串流屬性所計算,並在 eventsize 參數中傳回。 所傳回的值是使用者及系統追蹤事件的記憶體大小上限,因此當一組追蹤事件 (可能記錄在追蹤串流中) 的記憶體大小上限總...