diff options
| author | 2023-03-15 00:18:27 +0000 | |
|---|---|---|
| committer | 2023-03-15 00:18:27 +0000 | |
| commit | 504c912db7c12e40a581e25e2341c0e8f95d2e60 (patch) | |
| tree | 2385bd09b24a530f106becf8ed058ab21cd0e6c2 | |
| parent | ca5c2fdc1a41b21e48d9ffea7ee3e89fd620c095 (diff) | |
| parent | 7b4082bb0ac13d00efca92220e7c03068b7a9500 (diff) | |
Merge "Specify empty paramters as void in ABinderProcess_."
| -rw-r--r-- | libs/binder/ndk/include_platform/android/binder_process.h | 8 | ||||
| -rw-r--r-- | libs/binder/ndk/process.cpp | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/libs/binder/ndk/include_platform/android/binder_process.h b/libs/binder/ndk/include_platform/android/binder_process.h index ffcad559f6..3fbe90d70a 100644 --- a/libs/binder/ndk/include_platform/android/binder_process.h +++ b/libs/binder/ndk/include_platform/android/binder_process.h @@ -32,7 +32,7 @@ __BEGIN_DECLS * Do not use this from a library. Apps setup their own threadpools, and otherwise, the main * function should be responsible for configuring the threadpool for the entire application. */ -void ABinderProcess_startThreadPool(); +void ABinderProcess_startThreadPool(void); /** * This sets the maximum number of threads that can be started in the threadpool. By default, after * startThreadPool is called, this is 15. If it is called additional times, it will only prevent @@ -48,7 +48,7 @@ bool ABinderProcess_setThreadPoolMaxThreadCount(uint32_t numThreads); * you should use this in a library to abort if the threadpool is not started. * Programs should configure binder threadpools once at the beginning. */ -bool ABinderProcess_isThreadPoolStarted(); +bool ABinderProcess_isThreadPoolStarted(void); /** * This adds the current thread to the threadpool. This may cause the threadpool to exceed the * maximum size. @@ -56,7 +56,7 @@ bool ABinderProcess_isThreadPoolStarted(); * Do not use this from a library. Apps setup their own threadpools, and otherwise, the main * function should be responsible for configuring the threadpool for the entire application. */ -void ABinderProcess_joinThreadPool(); +void ABinderProcess_joinThreadPool(void); /** * This gives you an fd to wait on. Whenever data is available on the fd, @@ -79,6 +79,6 @@ __attribute__((weak)) binder_status_t ABinderProcess_setupPolling(int* fd) __INT * * \return STATUS_OK on success */ -__attribute__((weak)) binder_status_t ABinderProcess_handlePolledCommands() __INTRODUCED_IN(31); +__attribute__((weak)) binder_status_t ABinderProcess_handlePolledCommands(void) __INTRODUCED_IN(31); __END_DECLS diff --git a/libs/binder/ndk/process.cpp b/libs/binder/ndk/process.cpp index bc6610e3b9..0fea57b0a7 100644 --- a/libs/binder/ndk/process.cpp +++ b/libs/binder/ndk/process.cpp @@ -24,17 +24,17 @@ using ::android::IPCThreadState; using ::android::ProcessState; -void ABinderProcess_startThreadPool() { +void ABinderProcess_startThreadPool(void) { ProcessState::self()->startThreadPool(); ProcessState::self()->giveThreadPoolName(); } bool ABinderProcess_setThreadPoolMaxThreadCount(uint32_t numThreads) { return ProcessState::self()->setThreadPoolMaxThreadCount(numThreads) == 0; } -bool ABinderProcess_isThreadPoolStarted() { +bool ABinderProcess_isThreadPoolStarted(void) { return ProcessState::self()->isThreadPoolStarted(); } -void ABinderProcess_joinThreadPool() { +void ABinderProcess_joinThreadPool(void) { IPCThreadState::self()->joinThreadPool(); } @@ -42,6 +42,6 @@ binder_status_t ABinderProcess_setupPolling(int* fd) { return IPCThreadState::self()->setupPolling(fd); } -binder_status_t ABinderProcess_handlePolledCommands() { +binder_status_t ABinderProcess_handlePolledCommands(void) { return IPCThreadState::self()->handlePolledCommands(); } |