Closed Bug 660473 Opened 13 years ago Closed 13 years ago

Replace PR_Atomic* functions with macros in mailnews

Categories

(MailNews Core :: Backend, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 7.0

People

(Reporter: swsnyder, Assigned: swsnyder)

Details

Attachments

(1 file, 1 obsolete file)

Replaces NSPR PR_AtomicIncrement() and  PR_AtomicDecrement() functions with equivalent macros.  Done for performance reasons and for compatibity with the rest of the contemporary Gecko codebase.

See also bug 592557 for non-mailnews replacements.
Attachment #535882 - Attachment is patch: true
Attachment #535882 - Attachment mime type: text/x-patch → text/plain
Attachment #535882 - Flags: review?(neil)
Component: General → Backend
Product: Thunderbird → MailNews Core
QA Contact: general → backend
Assignee: nobody → swsnyder
Status: NEW → ASSIGNED
Comment on attachment 535882 [details] [diff] [review]
Replace PR_Atomic* functions with macros

>-  nsrefcnt count = PR_AtomicDecrement((PRInt32 *)&mRefCnt);
>+  nsrefcnt count = PR_ATOMIC_DECREMENT((PRInt32 *)&mRefCnt);
This should be NS_AtomicDecrementRefcnt(mRefCnt)

r=me with that fixed.
Attachment #535882 - Flags: review?(neil) → review+
Steve can you upload a patch fixing the review ?
Addressed review comment.
Attachment #535882 - Attachment is obsolete: true
Comment on attachment 537337 [details] [diff] [review]
Replace PR_Atomic* functions - updated

Carrying r+ from Neil
Attachment #537337 - Flags: review+
Checked in: http://hg.mozilla.org/comm-central/rev/0bf46f79173a
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 7.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: