Bill McCloskey
2ab0191db6
Bug 1365102 - Convert NS_GetCurrentThread uses in xpcom/ (r=froydnj)
...
MozReview-Commit-ID: 69qVzf8QJMq
2017-06-12 20:21:43 -07:00
Olli Pettay
e4559f5c3b
Bug 1368493, TimerThread::FindNextFireTimeForCurrentThread should look at timers in order, r=bkelly
...
--HG--
extra : rebase_source : a86b344380cbcd34d8930688eb90192846636dd8
2017-06-05 16:49:54 +03:00
Ben Kelly
3c709a6f61
Bug 1363829 P15 Expose nsITimer::GetAllowedEarlyFiringMicroseconds(). r=froydnj
2017-05-31 17:13:20 -07:00
Andreas Farre
892408079a
Bug 1311425 - Add pref for how far into the timer queue, r=smaug,f=froydnj
...
--HG--
extra : rebase_source : 170404bed646efffa71f1e5b0970ec69f6dc4ce5
2017-05-24 21:14:29 -04:00
Andreas Farre
8e2322bcce
Bug 1311425 - Make idle callbacks aware of nsITimers, r=froydnj
...
--HG--
extra : rebase_source : 3baa3054c1ca08783fd0d04dab91d3f97d2e65f1
2017-05-24 21:12:55 -04:00
Byron Campen [:bwc]
2394603d23
Bug 1361098: Simplify TimerThread::Init some. r=froydnj
...
--HG--
extra : rebase_source : dad786e4130964e48aef9812773e7cf4840ba46d
extra : amend_source : f6d7b3421c036bc94a2067439244b78dc75ccb68
2017-05-01 13:42:11 -05:00
Ben Kelly
a2eeb6e4f1
Bug 1325254 P5 Make nsITimer::Cancel() O(c). r=froydnj
2017-04-20 17:56:07 -04:00
Ben Kelly
497ffb3b7c
Bug 1325254 P4 Dynamically allocate Entry structs stored in TimerThread::mTimers. r=froydnj
2017-04-20 17:56:07 -04:00
Ben Kelly
0a01ed59e5
Bug 1325254 P3 Sort TimerThread list as a binary heap. r=froydnj
2017-04-20 17:56:07 -04:00
Ben Kelly
b208c81349
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
da850ec4e1
Bug 1325254 P1 Make TimerThread::mTimers store RefPtr<nsTimerImpl> objects. r=froydnj
2017-04-20 17:56:06 -04:00
Byron Campen [:bwc]
276d12bcef
Bug 1328643: Add some locking to prevent races caused by Cancel/Init from threads other than the target. r=froydnj
...
MozReview-Commit-ID: FdAPTGDNKup
--HG--
extra : rebase_source : f0b04c73f0867708750fb9022e07f929ec221e84
2017-01-11 13:59:19 -06:00
Byron Campen [:bwc]
70c2bbb4dc
Bug 1307350: Compensate for repeating timers that have not been appropriately cancelled. r=froydnj
...
MozReview-Commit-ID: 20VpLbgSjh4
--HG--
extra : rebase_source : b5b38c69c228b750e986cc502db1a6c2242919b4
2016-10-04 10:23:39 -05:00
Byron Campen [:bwc]
d317470863
Bug 1157323 - Part 3: Do not allow mTimeout to change while a timer is in the queue. r=froydnj
...
MozReview-Commit-ID: 3ZyikUsix8D
--HG--
extra : rebase_source : 94a71aae125f541ef1aee962b1aae69c6e326a42
2016-08-05 10:07:38 -05:00
Randell Jesup
5e0e7e846c
Bug 1197152: Alternative to remove all sleep/wake functionality from Timers r=froydnj
...
CLOSED TREE
--HG--
extra : amend_source : 8c363c570bea046904f2f9d7bf72b107012653d7
2015-09-08 11:34:09 -04:00
Byron Campen [:bwc]
e145322168
Bug 1059572 - Part 1: Move PostTimerEvent to TimerThread to allow TimerThread's monitor to protect it. r=nfroyd
...
--HG--
extra : rebase_source : ec9623818cd1a5f3a2665a1c4af4be7869c0dec3
2015-07-22 12:39:34 -05:00
Birunthan Mohanathas
a8939590de
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
78f6d80fa0
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
883849ee32
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
242708cf72
Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo.
...
--HG--
extra : rebase_source : 488e401ff87e31a2074c4108c4df0572d9536667
2015-02-09 14:34:50 -08:00
Andrew McCreight
d3826daa16
Back out Bug 1127201 (part 2) for various problems.
2015-02-06 15:04:32 -08:00
Nicholas Nethercote
d34f0301b8
Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo.
...
--HG--
extra : rebase_source : 99182e70335d2b5ff95f8c528ae992d37294be3a
2015-02-04 20:05:36 -08:00
Birunthan Mohanathas
c9fb2c0d48
Bug 1022456 - Fix modelines in xpcom/{base,glue,io,string,threads}/. r=froydnj
2014-06-30 08:39:45 -07:00
Robert O'Callahan
cbb8fdebfc
Bug 1015664
. Part 1: Remove NS_HIDDEN_() usage. r=bsmedberg
2014-06-03 00:08:21 +12:00
Birunthan Mohanathas
67dad11bae
Bug 995730 - Convert xpcom/threads/ to Gecko style. r=froydnj
...
--HG--
extra : rebase_source : 1f6f179f44db87f55ebfe5d855192adfad7d1b74
2014-05-27 10:15:35 +03:00
Robert O'Callahan
53ef4cd684
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.
--HG--
extra : rebase_source : 21a43c2c6a0f677263464b8a23c5f605e36b9d06
2014-03-03 18:12:51 +13:00
Jeff Walden
815e4d5f22
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
...
--HG--
extra : rebase_source : 4b4e47e4246c3764f1b8d50a308b7a717c53a865
2014-02-06 22:05:24 -08:00
Gabriele Svelto
91c1a25d52
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
47f9af7214
Revert this CLOSED TREE to changeset 4d3e221584a0.
2013-08-24 13:31:48 +02:00
Gabriele Svelto
795d28ed67
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
122242a163
Bug 884281 - use mozilla::Atomic in xpcom/; r=bsmedberg,jlebar
2013-08-22 11:14:42 -04:00
Joshua Cranmer
1a6dffc73f
Bug 884061 - Part 3y: Use NS_DECL_THREADSAFE_ISUPPORTS in xpcom/, r=bsmedberg
...
--HG--
extra : rebase_source : d54f6973e3ff859207115013e8361781769ffc76
2013-07-18 21:31:26 -05:00
Chris Peterson
472a77bd58
Bug 579517 - Remove some PRBools. r=ehsan
2013-04-04 10:28:18 -07:00
Avi Halachmi
40a88976c3
Bug 590422: Remove delay line filter from timer thread. r=bz
2013-02-20 20:21:09 +02:00
Ehsan Akhgari
dc1d50cc33
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
afd997bcb5
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
8108e807ad
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
5aa03620ad
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
ad50b9e765
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
e368dc9c85
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
df3797a6e7
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
82ff7027aa
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Michael Wu
d2b70213ac
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
...
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Chris Jones
829f9a414c
Bug 556214, part 4: TimerThread wants to be using non-reentrant Monitor. r=bz
2011-04-29 14:21:57 -05:00
Chris Jones ext:(%20and%20Kyle%20Huey%20%3Ckhuey%40kylehuey.com%3E)
2c92e3ecd5
Rollup of bug 645263 and bug 646259: Switch to mozilla:: sync primitives. r=cjones,dbaron,doublec,ehsan src=bsmedberg
...
Bug 645263, part 0: Count sync primitive ctor/dtors. r=dbaron
Bug 645263, part 1: Migrate content/media to mozilla:: sync primitives. r=doublec
Bug 645263, part 2: Migrate modules/plugin to mozilla:: sync primitives. sr=bsmedberg
Bug 645263, part 3: Migrate nsComponentManagerImpl to mozilla:: sync primitives. sr=bsmedberg
Bug 645263, part 4: Migrate everything else to mozilla:: sync primitives. r=dbaron
Bug 645263, part 5: Remove nsAutoLock.*. sr=bsmedberg
Bug 645263, part 6: Make editor test be nicer to deadlock detector. r=ehsan
Bug 645263, part 7: Disable tracemalloc backtraces for xpcshell tests. r=dbaron
Bug 646259: Fix nsCacheService to use a CondVar for notifying. r=cjones
2011-03-31 23:29:02 -05:00
Chris Jones
699024f868
Backed out changeset 4beec31b9ea9 for increasing frequency of intermittent orange bug 618052
2011-03-31 18:57:38 -05:00
Chris Jones ext:(%20and%20Kyle%20Huey%20%3Ckhuey%40kylehuey.com%3E)
0ce53bb598
Rollup of bug 645263 and bug 646259: Switch to mozilla:: sync primitives. r=cjones,dbaron,doublec,ehsan src=bsmedberg
...
Bug 645263, part 0: Count sync primitive ctor/dtors. r=dbaron
Bug 645263, part 1: Migrate content/media to mozilla:: sync primitives. r=doublec
Bug 645263, part 2: Migrate modules/plugin to mozilla:: sync primitives. sr=bsmedberg
Bug 645263, part 3: Migrate nsComponentManagerImpl to mozilla:: sync primitives. sr=bsmedberg
Bug 645263, part 4: Migrate everything else to mozilla:: sync primitives. r=dbaron
Bug 645263, part 5: Remove nsAutoLock.*. sr=bsmedberg
Bug 645263, part 6: Make editor test be nicer to deadlock detector. r=ehsan
Bug 645263, part 7: Disable tracemalloc backtraces for xpcshell tests. r=dbaron
Bug 646259: Fix nsCacheService to use a CondVar for notifying. r=cjones
2011-03-31 14:51:19 -05:00
Boris Zbarsky
76b9b28798
Bug 558306 part 2. Switch XPCOM timers to TimeDuration/TimeStamp. r=cjones, sr=brendan
2010-07-15 09:59:24 -04:00
Boris Zbarsky
6a042ef8f4
Backing out rev b567a93a5086 (bug 558306) to fix test orange
2010-07-15 13:49:28 -04:00
Boris Zbarsky
25be38b901
Bug 558306 part 2. Switch XPCOM timers to TimeDuration/TimeStamp. r=cjones, sr=brendan
2010-07-15 09:59:24 -04:00