Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: nspr/pr/src/io/prmwait.c

Issue 1019063003: Update to NSPR 4.10.8 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/nss.git@master
Patch Set: README bump Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « nspr/pr/src/io/prlog.c ('k') | nspr/pr/src/io/prprf.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public 2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 5
6 #include "primpl.h" 6 #include "primpl.h"
7 #include "pprmwait.h" 7 #include "pprmwait.h"
8 8
9 #define _MW_REHASH_MAX 11 9 #define _MW_REHASH_MAX 11
10 10
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 ** $$$$ 651 ** $$$$
652 */ 652 */
653 bottom = PR_GetIdentitiesLayer(desc->fd, PR_NSPR_IO_LAYER); 653 bottom = PR_GetIdentitiesLayer(desc->fd, PR_NSPR_IO_LAYER);
654 PR_ASSERT(NULL != bottom); 654 PR_ASSERT(NULL != bottom);
655 if (NULL != bottom) /* now what!?!?! */ 655 if (NULL != bottom) /* now what!?!?! */
656 { 656 {
657 bottom->secret->state = _PR_FILEDESC_CLOSED; 657 bottom->secret->state = _PR_FILEDESC_CLOSED;
658 if (closesocket(bottom->secret->md.osfd) == SOCKET_ERROR) 658 if (closesocket(bottom->secret->md.osfd) == SOCKET_ERROR)
659 { 659 {
660 fprintf(stderr, "closesocket failed: %d\n", WSAGetLastError()); 660 fprintf(stderr, "closesocket failed: %d\n", WSAGetLastError());
661 PR_ASSERT(!"What shall I do?"); 661 PR_NOT_REACHED("What shall I do?");
662 } 662 }
663 } 663 }
664 return; 664 return;
665 } /* NT_TimeProc */ 665 } /* NT_TimeProc */
666 666
667 static PRStatus NT_HashRemove(PRWaitGroup *group, PRFileDesc *fd) 667 static PRStatus NT_HashRemove(PRWaitGroup *group, PRFileDesc *fd)
668 { 668 {
669 PRRecvWait **waiter; 669 PRRecvWait **waiter;
670 670
671 _PR_MD_LOCK(&group->mdlock); 671 _PR_MD_LOCK(&group->mdlock);
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
1447 #endif 1447 #endif
1448 1448
1449 return result; /* what we live for */ 1449 return result; /* what we live for */
1450 1450
1451 bad_argument: 1451 bad_argument:
1452 PR_SetError(PR_INVALID_ARGUMENT_ERROR, 0); 1452 PR_SetError(PR_INVALID_ARGUMENT_ERROR, 0);
1453 return NULL; /* probably ambiguous */ 1453 return NULL; /* probably ambiguous */
1454 } /* PR_EnumerateWaitGroup */ 1454 } /* PR_EnumerateWaitGroup */
1455 1455
1456 /* prmwait.c */ 1456 /* prmwait.c */
OLDNEW
« no previous file with comments | « nspr/pr/src/io/prlog.c ('k') | nspr/pr/src/io/prprf.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698