Closed Bug 493116 Opened 16 years ago Closed 14 years ago

Rewrite: Upgrade content/ to new synchronization API

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 645263

People

(Reporter: cjones, Assigned: cjones)

References

Details

Attachments

(1 file, 3 obsolete files)

No description provided.
I'm going to punt on upgrading nsOggDecoder at roc's request. It's slightly non-trivial.
Same for nsWaveDecoder, which uses the same type of pattern.
Attached patch v2 (obsolete) — Splinter Review
Rotted already.
Attachment #377577 - Attachment is obsolete: true
Attached patch v3 (obsolete) — Splinter Review
Builds on my GNU/linux and Mac targets.
Attachment #377612 - Attachment is obsolete: true
From a quick look over the patch: I believe the Mutexes should be direct members instead of pointers, thats also what the XPCOM Thread Sync guide does.
(In reply to comment #6) > From a quick look over the patch: > I believe the Mutexes should be direct members instead of pointers, thats also > what the XPCOM Thread Sync guide does. I wholly agree, but determining when this is safe to do is very non-trivial. I would rather leave this up to people who know the code (I don't).
Can we use member typedefs to avoid writing mozilla:: in classes? Everywhere we initialize a monitor or lock in the constructor to "new ...", we should turn into a direct member instead of using a pointer. It should be easy to verify that those pointers are never reassigned, so this is safe.
Attachment #377637 - Attachment is obsolete: true
Attachment #377705 - Flags: review?(roc)
Attachment #377637 - Flags: review?(roc)
Comment on attachment 377705 [details] [diff] [review] Addressed roc's comments thanks!
Attachment #377705 - Flags: review?(roc) → review+
Component: Content → DOM
QA Contact: content → general
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: