mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 22:37:50 +00:00
Bug 1465452 Part 11 - Record refcount changes for pipe input/output streams, r=erahm.
--HG-- extra : rebase_source : 4c5f16a40e92688a3724da10c341dc4961911038
This commit is contained in:
parent
91398f534f
commit
2f0f16c25a
@ -149,7 +149,10 @@ class nsPipeInputStream final
|
||||
, public nsIBufferedInputStream
|
||||
{
|
||||
public:
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
// Pipe input streams preserve their refcount changes when record/replaying,
|
||||
// as otherwise the thread which destroys the stream may vary between
|
||||
// recording and replaying.
|
||||
NS_DECL_THREADSAFE_ISUPPORTS_WITH_RECORDING(recordreplay::Behavior::Preserve)
|
||||
NS_DECL_NSIINPUTSTREAM
|
||||
NS_DECL_NSIASYNCINPUTSTREAM
|
||||
NS_DECL_NSISEEKABLESTREAM
|
||||
@ -300,7 +303,9 @@ public:
|
||||
friend class nsPipeOutputStream;
|
||||
friend class AutoReadSegment;
|
||||
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
// As for nsPipeInputStream, preserve refcount changes when recording or
|
||||
// replaying.
|
||||
NS_DECL_THREADSAFE_ISUPPORTS_WITH_RECORDING(recordreplay::Behavior::Preserve)
|
||||
NS_DECL_NSIPIPE
|
||||
|
||||
// nsPipe methods:
|
||||
|
Loading…
x
Reference in New Issue
Block a user