OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/nacl/renderer/plugin/pnacl_translate_thread.h" | 5 #include "components/nacl/renderer/plugin/pnacl_translate_thread.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <iterator> | 9 #include <iterator> |
8 #include <sstream> | 10 #include <sstream> |
9 | 11 |
10 #include "base/logging.h" | 12 #include "base/logging.h" |
11 #include "components/nacl/renderer/plugin/plugin.h" | 13 #include "components/nacl/renderer/plugin/plugin.h" |
12 #include "components/nacl/renderer/plugin/plugin_error.h" | 14 #include "components/nacl/renderer/plugin/plugin_error.h" |
13 #include "components/nacl/renderer/plugin/srpc_params.h" | 15 #include "components/nacl/renderer/plugin/srpc_params.h" |
14 #include "components/nacl/renderer/plugin/temporary_file.h" | 16 #include "components/nacl/renderer/plugin/temporary_file.h" |
15 #include "components/nacl/renderer/plugin/utility.h" | 17 #include "components/nacl/renderer/plugin/utility.h" |
16 #include "native_client/src/shared/platform/nacl_sync_raii.h" | 18 #include "native_client/src/shared/platform/nacl_sync_raii.h" |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 AbortSubprocesses(); | 461 AbortSubprocesses(); |
460 if (translate_thread_ != NULL) | 462 if (translate_thread_ != NULL) |
461 NaClThreadJoin(translate_thread_.get()); | 463 NaClThreadJoin(translate_thread_.get()); |
462 PLUGIN_PRINTF(("~PnaclTranslateThread joined\n")); | 464 PLUGIN_PRINTF(("~PnaclTranslateThread joined\n")); |
463 NaClCondVarDtor(&buffer_cond_); | 465 NaClCondVarDtor(&buffer_cond_); |
464 NaClMutexDtor(&cond_mu_); | 466 NaClMutexDtor(&cond_mu_); |
465 NaClMutexDtor(&subprocess_mu_); | 467 NaClMutexDtor(&subprocess_mu_); |
466 } | 468 } |
467 | 469 |
468 } // namespace plugin | 470 } // namespace plugin |
OLD | NEW |