|
Groonga
|

Go to the source code of this file.
Typedefs | |
| typedef uint32_t(* | grn_thread_get_limit_func) (void *data) |
| The function pointer type that returns the max number of threads. | |
| typedef void(* | grn_thread_set_limit_func) (uint32_t new_limit, void *data) |
| The function pointer type that sets the max number of threads. | |
| typedef uint32_t(* | grn_thread_get_limit_with_ctx_func) (grn_ctx *ctx, void *data) |
| typedef void(* | grn_thread_set_limit_with_ctx_func) (grn_ctx *ctx, uint32_t new_limit, void *data) |
Functions | |
| GRN_API uint32_t | grn_thread_get_limit (void) |
| Get the max number of threads. | |
| GRN_API void | grn_thread_set_limit (uint32_t new_limit) |
| Set the max number of threads. | |
| GRN_API uint32_t | grn_thread_get_limit_with_ctx (grn_ctx *ctx) |
| GRN_API void | grn_thread_set_limit_with_ctx (grn_ctx *ctx, uint32_t new_limit) |
| GRN_API void | grn_thread_set_get_limit_func (grn_thread_get_limit_func func, void *data) |
| Set the custom function that returns the max number of threads. | |
| GRN_API void | grn_thread_set_set_limit_func (grn_thread_set_limit_func func, void *data) |
| Set the custom function that sets the max number of threads. | |
| GRN_API void | grn_thread_set_get_limit_with_ctx_func (grn_thread_get_limit_with_ctx_func func, void *data) |
| GRN_API void | grn_thread_set_set_limit_with_ctx_func (grn_thread_set_limit_with_ctx_func func, void *data) |
| GRN_API grn_rc | grn_thread_dump (grn_ctx *ctx) |
| typedef uint32_t(* grn_thread_get_limit_func) (void *data) |
The function pointer type that returns the max number of threads.
This is the function pointer type for custom functions that return the maximum number of threads. When set via grn_thread_set_get_limit_func, this function will be called by grn_thread_get_limit.
| data | User data passed when the function was registered. |
| typedef uint32_t(* grn_thread_get_limit_with_ctx_func) (grn_ctx *ctx, void *data) |
| typedef void(* grn_thread_set_limit_func) (uint32_t new_limit, void *data) |
The function pointer type that sets the max number of threads.
This is the function pointer type for custom functions that set the maximum number of threads. When set via grn_thread_set_set_limit_func, this function will be called by grn_thread_set_limit.
| new_limit | The new max number of threads to set. |
| data | User data passed when the function was registered. |
| typedef void(* grn_thread_set_limit_with_ctx_func) (grn_ctx *ctx, uint32_t new_limit, void *data) |
| GRN_API uint32_t grn_thread_get_limit | ( | void | ) |
Get the max number of threads.
If grn_thread_get_limit_func isn't set by grn_thread_set_get_limit_func, it always returns 0.
0. | GRN_API void grn_thread_set_get_limit_func | ( | grn_thread_get_limit_func | func, |
| void * | data | ||
| ) |
Set the custom function that returns the max number of threads.
This function sets a custom function that will be called when grn_thread_get_limit is invoked. The custom function allows applications to dynamically control the thread limit.
data is passed to func when func is called from grn_thread_get_limit.
For example usage:
| func | The custom function that returns the max number of threads. |
| data | User data to be passed to func when func is called. |
| GRN_API void grn_thread_set_get_limit_with_ctx_func | ( | grn_thread_get_limit_with_ctx_func | func, |
| void * | data | ||
| ) |
| GRN_API void grn_thread_set_limit | ( | uint32_t | new_limit | ) |
Set the max number of threads.
If grn_thread_set_limit_func isn't set by grn_thread_set_set_limit_func, it does nothing.
| new_limit | The new max number of threads. |
| GRN_API void grn_thread_set_set_limit_func | ( | grn_thread_set_limit_func | func, |
| void * | data | ||
| ) |
Set the custom function that sets the max number of threads.
This function sets a custom function that will be called when grn_thread_set_limit is invoked. The custom function allows applications to handle thread limit changes.
data is passed to func when func is called from grn_thread_set_limit.
For example usage:
| func | The custom function that sets the max number of threads. |
| data | User data to be passed to func when func is called. |
| GRN_API void grn_thread_set_set_limit_with_ctx_func | ( | grn_thread_set_limit_with_ctx_func | func, |
| void * | data | ||
| ) |