/** the function-ptr. representing the threads worker-function.
*/ typedefvoid (SAL_CALL *oslWorkerFunction)(void*);
/** levels of thread-priority NotethatoslThreadPriorityUnknownmightbereturned bygetPriorityOfThread()(e.g.whenitisterminated), butmustn'tbeusedwithsetPriority()!
*/ typedefenum
{
osl_Thread_PriorityHighest,
osl_Thread_PriorityAboveNormal,
osl_Thread_PriorityNormal,
osl_Thread_PriorityBelowNormal,
osl_Thread_PriorityLowest,
osl_Thread_PriorityUnknown, /* don't use to set */
osl_Thread_Priority_FORCE_EQUAL_SIZE = SAL_MAX_ENUM
} oslThreadPriority;
typedef sal_uInt32 oslThreadIdentifier;
typedefvoid* oslThreadKey;
/** Create the thread, using the function-ptr pWorker as itsmain(worker)function.Thisfunctionreceivesin itsvoid*parameterthevaluesuppliedbypThreadData. OncetheOS-structuresareinitialized,thethreadstarts running.
/** Create the thread, using the function-ptr pWorker as itsmain(worker)function.Thisfunctionreceivesin itsvoid*parameterthevaluesuppliedbypThreadData. Thethreadwillbecreated,butitwon'tstartrunning. Towake-upthethread,useresume().
/** Returns True if the thread was created and has not terminated yet. Notethataccordingtothisdefinitiona"running"threadmightbe suspended!AlsoreturnsFalseisThreadisNULL.
/** Schedules in thread to wait till after time slice of specified thread.scheduleThread()shouldbecalledintheworkingloop ofthethread,soanyotherthreadcouldalsogetthe processor.ReturnsFalseifthethreadshouldterminate,so thethreadcouldfreeanyallocatedresources.
/** Offers the rest of the threads time-slice to the OS. UnderPOSIXyou_need_toyield(),otherwise,sincethe threadsarenotpreemptedduringexecution,NOotherthread (evenwithhigherpriority)getstheprocessor.Controlis onlygiventoanotherthreadifthecurrentthreadblocks orusesyield().
*/
SAL_DLLPUBLIC void SAL_CALL osl_yieldThread(void);
/** Attempts to set the name of the current thread.
/** Create a key to an associated thread local storage pointer. */
SAL_DLLPUBLIC oslThreadKey SAL_CALL osl_createThreadKey(oslThreadKeyCallbackFunction pCallback);
/** Destroy a key to an associated thread local storage pointer. */
SAL_DLLPUBLIC void SAL_CALL osl_destroyThreadKey(oslThreadKey Key);
/** Get to key associated thread specific data. */
SAL_DLLPUBLIC void* SAL_CALL osl_getThreadKeyData(oslThreadKey Key);
/** Set to key associated thread specific data. */
SAL_DLLPUBLIC sal_Bool SAL_CALL osl_setThreadKeyData(oslThreadKey Key, void *pData);
/** Get the current thread local text encoding. */
SAL_DLLPUBLIC rtl_TextEncoding SAL_CALL osl_getThreadTextEncoding(void);
/** Set the thread local text encoding. @returntheoldtextencoding.
*/
SAL_DLLPUBLIC rtl_TextEncoding SAL_CALL osl_setThreadTextEncoding(rtl_TextEncoding Encoding);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.