Byron Campen [:bwc]
1bd837d560
Bug 1383019: Move more logic under the protection of nsTimerImpl::mMutex, and simplify. r=froydnj, a=abillings
...
MozReview-Commit-ID: JjYScKwyika
2017-09-14 12:19:24 -05:00
Stone Shih
f3f46de2fa
Bug 1351148 Part1: Add include header to TimerThread.h to fix compile errors. r=smaug.
...
MozReview-Commit-ID: 65UfFMwmSrm
2017-05-29 17:19:17 +08:00
Stone Shih
c05570954b
Backed out changeset 37c9e9d07aac (bug 1351148)
2017-08-11 15:19:51 +08:00
Stone Shih
b616cb3cc9
Bug 1351148 Part1: Add include header to TimerThread.h to fix compile errors. r=smaug.
...
MozReview-Commit-ID: 65UfFMwmSrm
2017-05-29 17:19:17 +08:00
Carsten "Tomcat" Book
01d32e38ae
Backed out changeset 420d9e53c959 (bug 1351148) for causing regressions / on request from stone
2017-07-28 09:20:54 +02:00
Stone Shih
b38e4d9094
Bug 1351148 Part1: Add include header to TimerThread.h to fix compile errors. r=smaug.
...
MozReview-Commit-ID: 65UfFMwmSrm
2017-05-29 17:19:17 +08:00
Bill McCloskey
b9ea10b472
Bug 1365102 - Convert NS_GetCurrentThread uses in xpcom/ (r=froydnj)
...
MozReview-Commit-ID: 69qVzf8QJMq
2017-06-12 20:21:43 -07:00
Olli Pettay
ee9725c9ea
Bug 1368493, TimerThread::FindNextFireTimeForCurrentThread should look at timers in order, r=bkelly
2017-06-05 16:49:54 +03:00
Ben Kelly
7881166288
Bug 1363829 P15 Expose nsITimer::GetAllowedEarlyFiringMicroseconds(). r=froydnj
2017-05-31 17:13:20 -07:00
Andreas Farre
4b87c2026c
Bug 1311425 - Add pref for how far into the timer queue, r=smaug,f=froydnj
2017-05-24 21:14:29 -04:00
Andreas Farre
4cb28e7f9e
Bug 1311425 - Make idle callbacks aware of nsITimers, r=froydnj
2017-05-24 21:12:55 -04:00
Byron Campen [:bwc]
04b0c62914
Bug 1361098: Simplify TimerThread::Init some. r=froydnj
2017-05-01 13:42:11 -05:00
Ben Kelly
49876dbfd4
Bug 1325254 P5 Make nsITimer::Cancel() O(c). r=froydnj
2017-04-20 17:56:07 -04:00
Ben Kelly
27eb26aba7
Bug 1325254 P4 Dynamically allocate Entry structs stored in TimerThread::mTimers. r=froydnj
2017-04-20 17:56:07 -04:00
Ben Kelly
71a579a325
Bug 1325254 P3 Sort TimerThread list as a binary heap. r=froydnj
2017-04-20 17:56:07 -04:00
Ben Kelly
e89f762f67
Bug 1325254 P2 Make TimerThread list store an entry struct and just drop nsTimerImpl ref on cancel. r=froydnj
2017-04-20 17:56:07 -04:00
Ben Kelly
b0925d56cf
Bug 1325254 P1 Make TimerThread::mTimers store RefPtr<nsTimerImpl> objects. r=froydnj
2017-04-20 17:56:06 -04:00
Byron Campen [:bwc]
c6db5a598c
Bug 1328643: Add some locking to prevent races caused by Cancel/Init from threads other than the target. r=froydnj
...
MozReview-Commit-ID: FdAPTGDNKup
2017-01-11 13:59:19 -06:00
Byron Campen [:bwc]
b3bef05d45
Bug 1307350: Compensate for repeating timers that have not been appropriately cancelled. r=froydnj
...
MozReview-Commit-ID: 20VpLbgSjh4
2016-10-04 10:23:39 -05:00
Byron Campen [:bwc]
c2bcb35570
Bug 1157323 - Part 3: Do not allow mTimeout to change while a timer is in the queue. r=froydnj
...
MozReview-Commit-ID: 3ZyikUsix8D
2016-08-05 10:07:38 -05:00
Randell Jesup
197c078dad
Bug 1197152: Alternative to remove all sleep/wake functionality from Timers r=froydnj
...
CLOSED TREE
2015-09-08 11:34:09 -04:00
Byron Campen [:bwc]
d451c034c5
Bug 1059572 - Part 1: Move PostTimerEvent to TimerThread to allow TimerThread's monitor to protect it. r=nfroyd
2015-07-22 12:39:34 -05:00
Birunthan Mohanathas
a29151dc87
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Randell Jesup
89fe0b89cd
Bug 1178890: Update timer arrays after sleep to account for time sleeping r=bwc,froydnj
2015-07-09 20:18:34 -04:00
Ehsan Akhgari
ea41d8de48
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Nicholas Nethercote
0247de46d8
Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo.
2015-02-09 14:34:50 -08:00
Andrew McCreight
e048a7df33
Back out Bug 1127201 (part 2) for various problems.
2015-02-06 15:04:32 -08:00
Nicholas Nethercote
40ab0270d5
Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo.
2015-02-04 20:05:36 -08:00
Birunthan Mohanathas
8a4a4c8465
Bug 1022456 - Fix modelines in xpcom/{base,glue,io,string,threads}/. r=froydnj
2014-06-30 08:39:45 -07:00
Robert O'Callahan
2c1ab3f641
Bug 1015664. Part 1: Remove NS_HIDDEN_() usage. r=bsmedberg
2014-06-03 00:08:21 +12:00
Birunthan Mohanathas
a108f37fc2
Bug 995730 - Convert xpcom/threads/ to Gecko style. r=froydnj
2014-05-27 10:15:35 +03:00
Robert O'Callahan
c0921e4128
Bug 955888. Part 8: In chaos mode, vary timer duration (while respecting order of firing). r=bz
...
We also ensure that the mean timer duration is unchanged.
2014-03-03 18:12:51 +13:00
Jeff Walden
00a30b0c34
Bug 969165 - Convert Atomic<T> where T != bool but is used as a bool over to Atomic<bool>, now that it's supported, in xpcom/. r=froydnj
2014-02-06 22:05:24 -08:00
Gabriele Svelto
4c7c7f557d
Bug 907798 - Remove TimeStamp.h includes from source files that do not need it; r=ehsan
2013-08-24 08:12:51 +02:00
Ms2ger
098de51886
Revert this CLOSED TREE to changeset 4d3e221584a0.
2013-08-24 13:31:48 +02:00
Gabriele Svelto
ede887d01f
Bug 907798 - Remove TimeStamp.h includes from source files that do not need it; r=ehsan
2013-08-24 08:12:51 +02:00
Nathan Froyd
2c083e3974
Bug 884281 - use mozilla::Atomic in xpcom/; r=bsmedberg,jlebar
2013-08-22 11:14:42 -04:00
Joshua Cranmer
1c073a2540
Bug 884061 - Part 3y: Use NS_DECL_THREADSAFE_ISUPPORTS in xpcom/, r=bsmedberg
2013-07-18 21:31:26 -05:00
Chris Peterson
6331cd68f3
Bug 579517 - Remove some PRBools. r=ehsan
2013-04-04 10:28:18 -07:00
Avi Halachmi
b329af6a50
Bug 590422: Remove delay line filter from timer thread. r=bz
2013-02-20 20:21:09 +02:00
Ehsan Akhgari
b6ecbc6c3f
Bug 799142 - Make sure that the allocator for nsTimerEvent objects stays around long enough to deallocate all outstanding objects of that type; r=bsmedberg
2013-03-04 19:04:59 -05:00
Ehsan Akhgari
6236b2417e
Backed out 2 changesets (bug 799142) because of memory leaks
...
Backed out changeset a0cf0252cee4 (bug 799142)
Backed out changeset 7b1bb476bd8d (bug 799142)
2013-03-04 15:48:04 -05:00
Ehsan Akhgari
047fdbe3ef
Bug 799142 - Make sure that the allocator for nsTimerEvent objects stays around long enough to deallocate all outstanding objects of that type; r=bsmedberg
2013-03-04 14:24:05 -05:00
Boris Zbarsky
aa2d0a961e
Bug 618479 part 2. Use binary, not linear, search to determine timer insertion locations. r=brendan
2013-02-13 10:11:53 -05:00
Abhishek Potnis
dd0a15b5b8
Bug 795511: Removed usages of PR_BIT and PR_BITMASK from the tree; r=ehsan
2012-10-20 07:31:43 +05:30
Ehsan Akhgari
243c878d26
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Ehsan Akhgari
6c1914b71f
Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (XPCOM parts); r=bsmedberg
2012-06-05 19:51:58 -04:00
Gervase Markham
cb6a072c2a
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Michael Wu
0fe7772ece
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
2011-09-28 23:19:26 -07:00
Chris Jones
29c32b885b
Bug 556214, part 4: TimerThread wants to be using non-reentrant Monitor. r=bz
2011-04-29 14:21:57 -05:00