Use pid_t instead of not int32_t.
Bug: b/266595015 Test: atest PerformanceHintManagerTest Change-Id: I51e0c2190117f9b439088e5a094dc3c74f5deeab
This commit is contained in:
@@ -41,7 +41,7 @@ typedef void (*APH_updateTargetWorkDuration)(APerformanceHintSession*, int64_t);
|
||||
typedef void (*APH_reportActualWorkDuration)(APerformanceHintSession*, int64_t);
|
||||
typedef void (*APH_closeSession)(APerformanceHintSession* session);
|
||||
typedef void (*APH_sendHint)(APerformanceHintSession*, int32_t);
|
||||
typedef void (*APH_setThreads)(APerformanceHintSession*, const int32_t*, size_t);
|
||||
typedef void (*APH_setThreads)(APerformanceHintSession*, const pid_t*, size_t);
|
||||
typedef void (*APH_getThreadIds)(APerformanceHintSession*, int32_t* const, size_t* const);
|
||||
|
||||
bool gAPerformanceHintBindingInitialized = false;
|
||||
|
||||
@@ -339,7 +339,7 @@ int APerformanceHint_sendHint(void* session, int32_t hint) {
|
||||
return reinterpret_cast<APerformanceHintSession*>(session)->sendHint(hint);
|
||||
}
|
||||
|
||||
int APerformanceHint_setThreads(APerformanceHintSession* session, const int32_t* threadIds,
|
||||
int APerformanceHint_setThreads(APerformanceHintSession* session, const pid_t* threadIds,
|
||||
size_t size) {
|
||||
if (session == nullptr) {
|
||||
return EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user