aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc/support/thd.h
diff options
context:
space:
mode:
authorGravatar yang-g <yangg@google.com>2016-02-12 14:54:16 -0800
committerGravatar yang-g <yangg@google.com>2016-02-12 14:54:16 -0800
commita3c968d9c263b7e380f524bcb27195a76ff3d4b7 (patch)
tree23907ff5633e431a4497d8ddffe035941bba263c /include/grpc/support/thd.h
parent1945ae42854689afa398e46d3086e55706fee655 (diff)
parent017f84ead8fe1709ecd9a9f7f532464d2a170ff9 (diff)
Merge remote-tracking branch 'upstream/master' into inherit_from_grpc_library
Diffstat (limited to 'include/grpc/support/thd.h')
-rw-r--r--include/grpc/support/thd.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/grpc/support/thd.h b/include/grpc/support/thd.h
index 84e964fc07..abe57ebefb 100644
--- a/include/grpc/support/thd.h
+++ b/include/grpc/support/thd.h
@@ -59,30 +59,30 @@ typedef struct {
in *t, and return true. If there are insufficient resources, return false.
If options==NULL, default options are used.
The thread is immediately runnable, and exits when (*thd_body)() returns. */
-GPR_API int gpr_thd_new(gpr_thd_id *t, void (*thd_body)(void *arg), void *arg,
- const gpr_thd_options *options);
+GPRAPI int gpr_thd_new(gpr_thd_id *t, void (*thd_body)(void *arg), void *arg,
+ const gpr_thd_options *options);
/* Return a gpr_thd_options struct with all fields set to defaults. */
-GPR_API gpr_thd_options gpr_thd_options_default(void);
+GPRAPI gpr_thd_options gpr_thd_options_default(void);
/* Set the thread to become detached on startup - this is the default. */
-GPR_API void gpr_thd_options_set_detached(gpr_thd_options *options);
+GPRAPI void gpr_thd_options_set_detached(gpr_thd_options *options);
/* Set the thread to become joinable - mutually exclusive with detached. */
-GPR_API void gpr_thd_options_set_joinable(gpr_thd_options *options);
+GPRAPI void gpr_thd_options_set_joinable(gpr_thd_options *options);
/* Returns non-zero if the option detached is set. */
-GPR_API int gpr_thd_options_is_detached(const gpr_thd_options *options);
+GPRAPI int gpr_thd_options_is_detached(const gpr_thd_options *options);
/* Returns non-zero if the option joinable is set. */
-GPR_API int gpr_thd_options_is_joinable(const gpr_thd_options *options);
+GPRAPI int gpr_thd_options_is_joinable(const gpr_thd_options *options);
/* Returns the identifier of the current thread. */
-GPR_API gpr_thd_id gpr_thd_currentid(void);
+GPRAPI gpr_thd_id gpr_thd_currentid(void);
/* Blocks until the specified thread properly terminates.
Calling this on a detached thread has unpredictable results. */
-GPR_API void gpr_thd_join(gpr_thd_id t);
+GPRAPI void gpr_thd_join(gpr_thd_id t);
#ifdef __cplusplus
}