| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #include "native_client/src/trusted/service_runtime/sel_ldr_thread_interface.h" | 7 #include "native_client/src/trusted/service_runtime/sel_ldr_thread_interface.h" |
| 8 | 8 |
| 9 #include "native_client/src/trusted/service_runtime/sel_ldr.h" | 9 #include "native_client/src/trusted/service_runtime/sel_ldr.h" |
| 10 #include "native_client/src/trusted/threading/nacl_thread_interface.h" | 10 #include "native_client/src/trusted/threading/nacl_thread_interface.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 NaClLog(3, | 34 NaClLog(3, |
| 35 ("NaClAddrSpSquattingThreadIfCtor_protected: placement base class" | 35 ("NaClAddrSpSquattingThreadIfCtor_protected: placement base class" |
| 36 " ctor failed\n")); | 36 " ctor failed\n")); |
| 37 return 0; | 37 return 0; |
| 38 } | 38 } |
| 39 | 39 |
| 40 self->nap = (struct NaClApp *) factory_data; | 40 self->nap = (struct NaClApp *) factory_data; |
| 41 NACL_VTBL(NaClRefCount, self) = | 41 NACL_VTBL(NaClRefCount, self) = |
| 42 (struct NaClRefCountVtbl *) &kNaClAddrSpSquattingThreadInterfaceVtbl; | 42 (struct NaClRefCountVtbl *) &kNaClAddrSpSquattingThreadInterfaceVtbl; |
| 43 | 43 |
| 44 NaClLog(3, "Leaving NaClAddrSpSquattingThreadIfCtor_protectedn"); | 44 NaClLog(3, "Leaving NaClAddrSpSquattingThreadIfCtor_protected\n"); |
| 45 return 1; | 45 return 1; |
| 46 } | 46 } |
| 47 | 47 |
| 48 int NaClAddrSpSquattingThreadIfFactoryFunction( | 48 int NaClAddrSpSquattingThreadIfFactoryFunction( |
| 49 void *factory_data, | 49 void *factory_data, |
| 50 NaClThreadIfStartFunction thread_fn_ptr, | 50 NaClThreadIfStartFunction thread_fn_ptr, |
| 51 void *thread_fn_data, | 51 void *thread_fn_data, |
| 52 size_t thread_stack_size, | 52 size_t thread_stack_size, |
| 53 struct NaClThreadInterface **out_new_thread) { | 53 struct NaClThreadInterface **out_new_thread) { |
| 54 struct NaClAddrSpSquattingThreadInterface *new_thread; | 54 struct NaClAddrSpSquattingThreadInterface *new_thread; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 } | 110 } |
| 111 | 111 |
| 112 struct NaClThreadInterfaceVtbl const kNaClAddrSpSquattingThreadInterfaceVtbl = { | 112 struct NaClThreadInterfaceVtbl const kNaClAddrSpSquattingThreadInterfaceVtbl = { |
| 113 { | 113 { |
| 114 NaClThreadInterfaceDtor, | 114 NaClThreadInterfaceDtor, |
| 115 }, | 115 }, |
| 116 NaClAddrSpSquattingThreadIfStartThread, | 116 NaClAddrSpSquattingThreadIfStartThread, |
| 117 NaClAddrSpSquattingThreadIfLaunchCallback, | 117 NaClAddrSpSquattingThreadIfLaunchCallback, |
| 118 NaClThreadInterfaceExit, | 118 NaClThreadInterfaceExit, |
| 119 }; | 119 }; |
| OLD | NEW |