| Index: src/trusted/service_runtime/nacl_app_thread.c
|
| diff --git a/src/trusted/service_runtime/nacl_app_thread.c b/src/trusted/service_runtime/nacl_app_thread.c
|
| index 00e7c37b507537014c5f232f3d28d26ee1c6406b..cce568baa71147c38ae523e01081b4478d73d7c5 100644
|
| --- a/src/trusted/service_runtime/nacl_app_thread.c
|
| +++ b/src/trusted/service_runtime/nacl_app_thread.c
|
| @@ -21,28 +21,6 @@
|
| #include "native_client/src/trusted/service_runtime/nacl_syscall_common.h"
|
|
|
|
|
| -void NaClAppThreadSetSuspendState(struct NaClAppThread *natp,
|
| - enum NaClSuspendState old_state,
|
| - enum NaClSuspendState new_state) {
|
| -#if NACL_WINDOWS
|
| - NaClXMutexLock(&natp->mu);
|
| - while ((natp->suspend_state & NACL_APP_THREAD_SUSPENDING) != 0) {
|
| - /*
|
| - * We are being suspended, but SuspendThread() has not taken effect yet.
|
| - */
|
| - NaClXCondVarWait(&natp->cv, &natp->mu);
|
| - }
|
| - DCHECK(natp->suspend_state == old_state);
|
| - natp->suspend_state = new_state;
|
| - NaClXMutexUnlock(&natp->mu);
|
| -#else
|
| - UNREFERENCED_PARAMETER(natp);
|
| - UNREFERENCED_PARAMETER(old_state);
|
| - UNREFERENCED_PARAMETER(new_state);
|
| -#endif
|
| -}
|
| -
|
| -
|
| void WINAPI NaClThreadLauncher(void *state) {
|
| struct NaClAppThread *natp = (struct NaClAppThread *) state;
|
| uint32_t thread_idx;
|
| @@ -222,9 +200,7 @@ int NaClAppThreadCtor(struct NaClAppThread *natp,
|
| goto cleanup_cv;
|
| }
|
|
|
| -#if NACL_WINDOWS
|
| natp->suspend_state = NACL_APP_THREAD_TRUSTED;
|
| -#endif
|
|
|
| natp->thread_num = -1; /* illegal index */
|
| natp->sys_tls = sys_tls;
|
|
|