Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 54 { | 54 { |
| 55 start(interval, 0, caller); | 55 start(interval, 0, caller); |
| 56 } | 56 } |
| 57 | 57 |
| 58 void stop(); | 58 void stop(); |
| 59 bool isActive() const; | 59 bool isActive() const; |
| 60 const WebTraceLocation& location() const { return m_location; } | 60 const WebTraceLocation& location() const { return m_location; } |
| 61 | 61 |
| 62 double nextFireInterval() const; | 62 double nextFireInterval() const; |
| 63 double nextUnalignedFireInterval() const; | 63 double nextUnalignedFireInterval() const; |
| 64 NO_LAZY_SWEEP_SANITIZE_ADDRESS | |
| 64 double repeatInterval() const { return m_repeatInterval; } | 65 double repeatInterval() const { return m_repeatInterval; } |
|
haraken
2015/05/20 22:27:26
I'm a bit afraid that this function is inlined in
sof
2015/05/21 05:31:36
Maybe so. I don't know what it does, but if ASan d
| |
| 65 | 66 |
| 66 void augmentRepeatInterval(double delta) { | 67 void augmentRepeatInterval(double delta) { |
| 67 setNextFireTime(m_nextFireTime + delta); | 68 setNextFireTime(m_nextFireTime + delta); |
| 68 m_repeatInterval += delta; | 69 m_repeatInterval += delta; |
| 69 } | 70 } |
| 70 | 71 |
| 71 void didChangeAlignmentInterval(); | 72 void didChangeAlignmentInterval(); |
| 72 | 73 |
| 73 private: | 74 private: |
| 74 virtual void fired() = 0; | 75 virtual void fired() = 0; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 161 NO_LAZY_SWEEP_SANITIZE_ADDRESS | 162 NO_LAZY_SWEEP_SANITIZE_ADDRESS |
| 162 inline bool TimerBase::isActive() const | 163 inline bool TimerBase::isActive() const |
| 163 { | 164 { |
| 164 ASSERT(m_thread == currentThread()); | 165 ASSERT(m_thread == currentThread()); |
| 165 return m_nextFireTime; | 166 return m_nextFireTime; |
| 166 } | 167 } |
| 167 | 168 |
| 168 } | 169 } |
| 169 | 170 |
| 170 #endif | 171 #endif |
| OLD | NEW |