Closed Bug 451463 Opened 16 years ago Closed 16 years ago

mozStorageStatement needs threadsafe refcounting

Categories

(Toolkit :: Storage, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.1b1

People

(Reporter: sdwilsh, Assigned: sdwilsh)

References

Details

Attachments

(1 file)

If you create a statement on a background thread, it will end up getting garbage collected on the main thread.  The sqlite3_stmt object is threadsafe, but I'd rather not make the guarantee that mozIStorageStatement is yet.  That'll add some locking that I just don't think we'd want.
Attached patch v1.0Splinter Review
Attachment #334792 - Flags: review?(bent.mozilla)
Whiteboard: [has patch][needs reivew bent]
Comment on attachment 334792 [details] [diff] [review]
v1.0

Oh, sorry for the delay, this looks fine.
Attachment #334792 - Flags: review?(bent.mozilla) → review+
Whiteboard: [has patch][needs reivew bent] → [has patch][has review][can land]
Pushed to mozilla-central:
http://hg.mozilla.org/mozilla-central/index.cgi/rev/cef09646fc13
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Flags: in-testsuite-
Flags: in-litmus-
Resolution: --- → FIXED
Whiteboard: [has patch][has review][can land]
Target Milestone: --- → mozilla1.9.1b1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: