mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-09 00:37:32 +09:00
Issue #1338 - Part 1: Update NSPR to 4.24
This commit is contained in:
parent
f6096004d7
commit
1a92143e68
454 changed files with 42944 additions and 48647 deletions
|
|
@ -13,8 +13,8 @@
|
|||
|
||||
/*
|
||||
* NOTE:
|
||||
* THIS API IS A PRELIMINARY VERSION IN NSPR 4.0 AND IS SUBJECT TO
|
||||
* CHANGE
|
||||
* THIS API IS A PRELIMINARY VERSION IN NSPR 4.0 AND IS SUBJECT TO
|
||||
* CHANGE
|
||||
*/
|
||||
|
||||
PR_BEGIN_EXTERN_C
|
||||
|
|
@ -32,7 +32,7 @@ typedef void (PR_CALLBACK *PRJobFn) (void *arg);
|
|||
/* Create thread pool */
|
||||
NSPR_API(PRThreadPool *)
|
||||
PR_CreateThreadPool(PRInt32 initial_threads, PRInt32 max_threads,
|
||||
PRUint32 stacksize);
|
||||
PRUint32 stacksize);
|
||||
|
||||
/* queue a job */
|
||||
NSPR_API(PRJob *)
|
||||
|
|
@ -41,27 +41,27 @@ PR_QueueJob(PRThreadPool *tpool, PRJobFn fn, void *arg, PRBool joinable);
|
|||
/* queue a job, when a socket is readable */
|
||||
NSPR_API(PRJob *)
|
||||
PR_QueueJob_Read(PRThreadPool *tpool, PRJobIoDesc *iod,
|
||||
PRJobFn fn, void * arg, PRBool joinable);
|
||||
PRJobFn fn, void * arg, PRBool joinable);
|
||||
|
||||
/* queue a job, when a socket is writeable */
|
||||
NSPR_API(PRJob *)
|
||||
PR_QueueJob_Write(PRThreadPool *tpool, PRJobIoDesc *iod,
|
||||
PRJobFn fn, void * arg, PRBool joinable);
|
||||
PRJobFn fn, void * arg, PRBool joinable);
|
||||
|
||||
/* queue a job, when a socket has a pending connection */
|
||||
NSPR_API(PRJob *)
|
||||
PR_QueueJob_Accept(PRThreadPool *tpool, PRJobIoDesc *iod,
|
||||
PRJobFn fn, void * arg, PRBool joinable);
|
||||
PRJobFn fn, void * arg, PRBool joinable);
|
||||
|
||||
/* queue a job, when the socket connection to addr succeeds or fails */
|
||||
NSPR_API(PRJob *)
|
||||
PR_QueueJob_Connect(PRThreadPool *tpool, PRJobIoDesc *iod,
|
||||
const PRNetAddr *addr, PRJobFn fn, void * arg, PRBool joinable);
|
||||
const PRNetAddr *addr, PRJobFn fn, void * arg, PRBool joinable);
|
||||
|
||||
/* queue a job, when a timer exipres */
|
||||
NSPR_API(PRJob *)
|
||||
PR_QueueJob_Timer(PRThreadPool *tpool, PRIntervalTime timeout,
|
||||
PRJobFn fn, void * arg, PRBool joinable);
|
||||
PRJobFn fn, void * arg, PRBool joinable);
|
||||
/* cancel a job */
|
||||
NSPR_API(PRStatus)
|
||||
PR_CancelJob(PRJob *job);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue