Chromium Code Reviews| Index: src/trusted/service_runtime/generic/thread_suspension.c |
| diff --git a/src/trusted/service_runtime/generic/thread_suspension.c b/src/trusted/service_runtime/generic/thread_suspension.c |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7a9a94245e2b444d322a8d24d02a54b03eda4933 |
| --- /dev/null |
| +++ b/src/trusted/service_runtime/generic/thread_suspension.c |
| @@ -0,0 +1,29 @@ |
| +/* |
| + * Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| + * Use of this source code is governed by a BSD-style license that can be |
| + * found in the LICENSE file. |
| + */ |
| + |
| +#include "native_client/src/shared/platform/nacl_log.h" |
| +#include "native_client/src/trusted/service_runtime/nacl_app_thread.h" |
| + |
| + |
| +void NaClAppThreadSetSuspendState(struct NaClAppThread *natp, |
| + enum NaClSuspendState old_state, |
|
bradn
2012/05/18 19:56:35
Did you want to consider just adding this as an os
Mark Seaborn
2012/05/21 15:03:57
I think it would be a little misleading to put non
|
| + enum NaClSuspendState new_state) { |
| + UNREFERENCED_PARAMETER(natp); |
| + UNREFERENCED_PARAMETER(old_state); |
| + UNREFERENCED_PARAMETER(new_state); |
| +} |
| + |
| +void NaClUntrustedThreadsSuspendAll(struct NaClApp *nap) { |
| + UNREFERENCED_PARAMETER(nap); |
| + |
| + NaClLog(LOG_FATAL, "NaClUntrustedThreadsSuspendAll: Not implemented\n"); |
| +} |
| + |
| +void NaClUntrustedThreadsResumeAll(struct NaClApp *nap) { |
| + UNREFERENCED_PARAMETER(nap); |
| + |
| + NaClLog(LOG_FATAL, "NaClUntrustedThreadsResumeAll: Not implemented\n"); |
| +} |