sim-se: rename Process::setpgid member
The getter methods to access these types of members do not have a 'get' string in the method names. To make the interface a bit more consistent, remove the 'set' part of the member name. Change-Id: I04c56bd9d9feb1cf68ff50a1152083ea57ea7c62 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/20008 Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com> Maintainer: Brandon Potter <Brandon.Potter@amd.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
committed by
Brandon Potter
parent
dbf18ac111
commit
f4d21fa24a
@@ -87,8 +87,8 @@ class Process : public SimObject
|
||||
inline uint64_t pid() { return _pid; }
|
||||
inline uint64_t ppid() { return _ppid; }
|
||||
inline uint64_t pgid() { return _pgid; }
|
||||
inline void pgid(uint64_t pgid) { _pgid = pgid; }
|
||||
inline uint64_t tgid() { return _tgid; }
|
||||
inline void setpgid(uint64_t pgid) { _pgid = pgid; }
|
||||
|
||||
const char *progName() const { return executable.c_str(); }
|
||||
|
||||
|
||||
@@ -1001,7 +1001,7 @@ setpgidFunc(SyscallDesc *desc, int callnum, ThreadContext *tc)
|
||||
return -EINVAL;
|
||||
|
||||
if (pid == 0) {
|
||||
process->setpgid(process->pid());
|
||||
process->pgid(process->pid());
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1020,7 +1020,7 @@ setpgidFunc(SyscallDesc *desc, int callnum, ThreadContext *tc)
|
||||
}
|
||||
|
||||
assert(matched_ph);
|
||||
matched_ph->setpgid((pgid == 0) ? matched_ph->pid() : pgid);
|
||||
matched_ph->pgid((pgid == 0) ? matched_ph->pid() : pgid);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user