Use suffixed {uint,int}{8,16,32,64}_t types.

Removes the use of uint8, etc. in favor of uint8_t.

BUG=webrtc:5024
R=henrik.lundin@webrtc.org, henrikg@webrtc.org, perkj@webrtc.org, solenberg@webrtc.org, stefan@webrtc.org, tina.legrand@webrtc.org

Review URL: https://codereview.webrtc.org/1362503003 .

Cr-Commit-Position: refs/heads/master@{#10196}
This commit is contained in:
Peter Boström
2015-10-07 12:23:21 +02:00
parent 8d15bd6dab
commit 0c4e06b4c6
339 changed files with 4023 additions and 3764 deletions

View File

@ -20,9 +20,9 @@
namespace rtc {
class Task;
const int64 kSecToMsec = 1000;
const int64 kMsecTo100ns = 10000;
const int64 kSecTo100ns = kSecToMsec * kMsecTo100ns;
const int64_t kSecToMsec = 1000;
const int64_t kMsecTo100ns = 10000;
const int64_t kSecTo100ns = kSecToMsec * kMsecTo100ns;
class TaskRunner : public TaskParent, public sigslot::has_slots<> {
public:
@ -36,13 +36,13 @@ class TaskRunner : public TaskParent, public sigslot::has_slots<> {
// the units and that rollover while the computer is running.
//
// On Windows, GetSystemTimeAsFileTime is the typical implementation.
virtual int64 CurrentTime() = 0 ;
virtual int64_t CurrentTime() = 0;
void StartTask(Task *task);
void RunTasks();
void PollTasks();
void UpdateTaskTimeout(Task *task, int64 previous_task_timeout_time);
void UpdateTaskTimeout(Task* task, int64_t previous_task_timeout_time);
#ifdef _DEBUG
bool is_ok_to_delete(Task* task) {
@ -60,7 +60,7 @@ class TaskRunner : public TaskParent, public sigslot::has_slots<> {
// Returns the next absolute time when a task times out
// OR "0" if there is no next timeout.
int64 next_task_timeout() const;
int64_t next_task_timeout() const;
protected:
// The primary usage of this method is to know if
@ -82,7 +82,7 @@ class TaskRunner : public TaskParent, public sigslot::has_slots<> {
private:
void InternalRunTasks(bool in_destructor);
void CheckForTimeoutChange(int64 previous_timeout_time);
void CheckForTimeoutChange(int64_t previous_timeout_time);
std::vector<Task *> tasks_;
Task *next_timeout_task_;