| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 */ |
| OLD | NEW |