Changeset 102001 in vbox
- Timestamp:
- Nov 8, 2023 6:40:18 PM (15 months ago)
- Location:
- trunk/src/libs/xpcom18a4
- Files:
-
- 2 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/Makefile.kmk
r101969 r102001 178 178 nsprpub/pr/include/prio.h \ 179 179 nsprpub/pr/include/prlock.h \ 180 nsprpub/pr/include/prlog.h \181 180 nsprpub/pr/include/prlong.h \ 182 181 nsprpub/pr/include/prmem.h \ … … 474 473 nsprpub/pr/src/io/priometh.c \ 475 474 nsprpub/pr/src/io/prmapopt.c \ 476 nsprpub/pr/src/io/prlog.c \477 475 nsprpub/pr/src/io/prprf.c \ 478 476 nsprpub/pr/src/io/prscanf.c \ -
trunk/src/libs/xpcom18a4/nsprpub/pr/include/md/_nspr_pthread.h
r1 r102001 85 85 #define _MD_SWITCH_CONTEXT(_thread) \ 86 86 PR_BEGIN_MACRO \ 87 PR_ASSERT(_thread->no_sched);\87 Assert(_thread->no_sched); \ 88 88 if (!SAVE_CONTEXT(_thread)) { \ 89 89 (_thread)->md.errcode = errno; \ -
trunk/src/libs/xpcom18a4/nsprpub/pr/include/nspr.h
r101970 r102001 49 49 #include "prio.h" 50 50 #include "prlock.h" 51 #include "prlog.h"52 51 #include "prlong.h" 53 52 #include "prmem.h" -
trunk/src/libs/xpcom18a4/nsprpub/pr/include/private/primpl.h
r101971 r102001 523 523 extern PRInt32 _pr_pageShift; 524 524 525 extern PRLogModuleInfo *_pr_clock_lm;526 extern PRLogModuleInfo *_pr_cmon_lm;527 extern PRLogModuleInfo *_pr_io_lm;528 extern PRLogModuleInfo *_pr_cvar_lm;529 extern PRLogModuleInfo *_pr_mon_lm;530 extern PRLogModuleInfo *_pr_linker_lm;531 extern PRLogModuleInfo *_pr_sched_lm;532 extern PRLogModuleInfo *_pr_thread_lm;533 extern PRLogModuleInfo *_pr_gc_lm;534 535 525 extern PRFileDesc *_pr_stdin; 536 526 extern PRFileDesc *_pr_stdout; -
trunk/src/libs/xpcom18a4/nsprpub/pr/src/misc/prinit.c
r101983 r102001 44 44 45 45 #ifdef VBOX 46 #include <iprt/assert.h> 46 47 #include <iprt/err.h> 47 48 #include <iprt/env.h> … … 50 51 #endif 51 52 52 PRLogModuleInfo *_pr_clock_lm;53 PRLogModuleInfo *_pr_cmon_lm;54 PRLogModuleInfo *_pr_io_lm;55 PRLogModuleInfo *_pr_cvar_lm;56 PRLogModuleInfo *_pr_mon_lm;57 PRLogModuleInfo *_pr_linker_lm;58 PRLogModuleInfo *_pr_sched_lm;59 PRLogModuleInfo *_pr_thread_lm;60 PRLogModuleInfo *_pr_gc_lm;61 PRLogModuleInfo *_pr_shm_lm;62 PRLogModuleInfo *_pr_shma_lm;63 64 53 PRFileDesc *_pr_stdin; 65 54 PRFileDesc *_pr_stdout; … … 85 74 #endif 86 75 87 _pr_clock_lm = PR_NewLogModule("clock");88 _pr_cmon_lm = PR_NewLogModule("cmon");89 _pr_io_lm = PR_NewLogModule("io");90 _pr_mon_lm = PR_NewLogModule("mon");91 _pr_linker_lm = PR_NewLogModule("linker");92 _pr_cvar_lm = PR_NewLogModule("cvar");93 _pr_sched_lm = PR_NewLogModule("sched");94 _pr_thread_lm = PR_NewLogModule("thread");95 _pr_gc_lm = PR_NewLogModule("gc");96 _pr_shm_lm = PR_NewLogModule("shm");97 _pr_shma_lm = PR_NewLogModule("shma");98 99 76 /* NOTE: These init's cannot depend on _PR_MD_CURRENT_THREAD() */ 100 77 _PR_MD_EARLY_INIT(); … … 106 83 107 84 _PR_InitIO(); 108 _PR_InitLog();109 85 _PR_InitDtoa(); 110 86 … … 180 156 break; 181 157 default: 182 PR_ASSERT(0);158 AssertFailed(); 183 159 } 184 160 } … … 313 289 break; 314 290 default: 315 PR_ASSERT(0);291 AssertFailed(); 316 292 PR_SetError(PR_UNKNOWN_ERROR, 0); 317 293 fd = NULL; … … 358 334 359 335 /* this code doesn't support all attributes */ 360 PR_ASSERT(!attr || !attr->currentDirectory);336 Assert(!attr || !attr->currentDirectory); 361 337 /* no custom environment, please */ 362 PR_ASSERT(!envp);338 Assert(!envp); 363 339 364 340 childEnv = RTENV_DEFAULT; -
trunk/src/libs/xpcom18a4/nsprpub/pr/src/pthreads/ptthread.c
r101994 r102001 50 50 51 51 #include <iprt/asm.h> 52 #include <iprt/assert.h> 52 53 #include <iprt/thread.h> 53 54 #include <iprt/mem.h> … … 110 111 */ 111 112 rv = pthread_setspecific(pt_book.key, thred); 112 PR_ASSERT(0 == rv);113 Assert(0 == rv); 113 114 114 115 /* make the thread visible to the rest of the runtime */ … … 163 164 { 164 165 rv = pthread_setspecific(pt_book.key, NULL); 165 PR_ASSERT(0 == rv);166 Assert(0 == rv); 166 167 } 167 168 … … 201 202 thred->id = pthread_self(); 202 203 rv = pthread_setspecific(pt_book.key, thred); 203 PR_ASSERT(0 == rv);204 Assert(0 == rv); 204 205 205 206 thred->state = PT_THREAD_GLOBAL | PT_THREAD_FOREIGN; … … 355 356 int rv = -1; 356 357 void *result = NULL; 357 PR_ASSERT(thred != NULL);358 Assert(thred != NULL); 358 359 359 360 if ((0xafafafaf == thred->state) … … 378 379 int rcThread = 0; 379 380 rv = RTThreadWait(hThread, RT_INDEFINITE_WAIT, &rcThread); 380 PR_ASSERT(RT_SUCCESS(rv) && rcThread == VINF_SUCCESS);381 Assert(RT_SUCCESS(rv) && rcThread == VINF_SUCCESS); 381 382 if (RT_SUCCESS(rv)) 382 383 { … … 402 403 _PT_PTHREAD_GETSPECIFIC(pt_book.key, thred); 403 404 if (NULL == thred) thred = pt_AttachThread(); 404 PR_ASSERT(NULL != thred);405 Assert(NULL != thred); 405 406 return (PRThread*)thred; 406 407 } /* PR_GetCurrentThread */ … … 426 427 PR_IMPLEMENT(PRThreadPriority) PR_GetThreadPriority(const PRThread *thred) 427 428 { 428 PR_ASSERT(thred != NULL);429 Assert(thred != NULL); 429 430 return thred->priority; 430 431 } /* PR_GetThreadPriority */ … … 434 435 PRIntn rv = -1; 435 436 436 PR_ASSERT(NULL != thred);437 Assert(NULL != thred); 437 438 438 439 if ((PRIntn)PR_PRIORITY_FIRST > (PRIntn)newPri) … … 487 488 */ 488 489 PRCondVar *cv; 489 PR_ASSERT(NULL != thred);490 Assert(NULL != thred); 490 491 if (NULL == thred) return PR_FAILURE; 491 492 … … 498 499 ASMAtomicIncU32(&cv->notify_pending); 499 500 rv = pthread_cond_broadcast(&cv->cv); 500 PR_ASSERT(0 == rv);501 Assert(0 == rv); 501 502 if (0 > ASMAtomicDecU32(&cv->notify_pending)) 502 503 PR_DestroyCondVar(cv); … … 547 548 pthread_attr_getschedpolicy(&attr, &policy); 548 549 pt_book.minPrio = sched_get_priority_min(policy); 549 PR_ASSERT(-1 != pt_book.minPrio);550 Assert(-1 != pt_book.minPrio); 550 551 pt_book.maxPrio = sched_get_priority_max(policy); 551 PR_ASSERT(-1 != pt_book.maxPrio);552 Assert(-1 != pt_book.maxPrio); 552 553 pthread_attr_destroy(&attr); 553 554 } … … 561 562 #endif 562 563 563 PR_ASSERT(NULL == pt_book.ml);564 Assert(NULL == pt_book.ml); 564 565 pt_book.ml = PR_NewLock(); 565 PR_ASSERT(NULL != pt_book.ml);566 Assert(NULL != pt_book.ml); 566 567 pt_book.cv = PR_NewCondVar(pt_book.ml); 567 PR_ASSERT(NULL != pt_book.cv);568 Assert(NULL != pt_book.cv); 568 569 thred = PR_NEWZAP(PRThread); 569 PR_ASSERT(NULL != thred);570 Assert(NULL != thred); 570 571 thred->arg = NULL; 571 572 thred->startFunc = NULL; … … 603 604 */ 604 605 rv = _PT_PTHREAD_KEY_CREATE(&pt_book.key, _pt_thread_death); 605 PR_ASSERT(0 == rv);606 Assert(0 == rv); 606 607 rv = pthread_setspecific(pt_book.key, thred); 607 PR_ASSERT(0 == rv);608 Assert(0 == rv); 608 609 PR_SetThreadPriority(thred, priority); 609 610 } /* _PR_InitThreads */ … … 613 614 PRThread *me = PR_CurrentThread(); 614 615 Log(("PR_Cleanup: shutting down NSPR\n")); 615 PR_ASSERT(me->state & PT_THREAD_PRIMORD);616 Assert(me->state & PT_THREAD_PRIMORD); 616 617 if (me->state & PT_THREAD_PRIMORD) 617 618 { … … 622 623 623 624 _PR_CleanupDtoa(); 624 _PR_LogCleanup();625 625 /* Close all the fd's before calling _PR_CleanupIO */ 626 626 _PR_CleanupIO();
Note:
See TracChangeset
for help on using the changeset viewer.