Closed
Bug 1276838
Opened 9 years ago
Closed 9 years ago
Improve ergonomics for cubeb function calls for AudioStream
Categories
(Core :: Audio/Video: Playback, defect)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
FIXED
mozilla49
Tracking | Status | |
---|---|---|
firefox49 | --- | fixed |
People
(Reporter: jwwang, Assigned: jwwang)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Cubeb function must be called without lock held to avoid deadlock. Therefore we used to have code like:
int r;
{
MonitorAutoUnlock mon(mMonitor);
r = cubeb_stream_xxx();
}
// do something about the return value |r|.
This style is a bit ugly. We can do something instead:
int r = InvokeCubebFunction();
// do something about the return value |r|.
InvokeCubebFunction will release the monitor before calling cubeb functions.
Assignee | ||
Comment 1•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/56492/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/56492/
Attachment #8758126 -
Flags: review?(kinetik)
Updated•9 years ago
|
Attachment #8758126 -
Flags: review?(kinetik) → review+
Comment 2•9 years ago
|
||
Comment on attachment 8758126 [details]
MozReview Request: Bug 1276838 - improve coding style of calling cubeb functions. r=kinetik.
https://reviewboard.mozilla.org/r/56492/#review53082
Assignee | ||
Comment 3•9 years ago
|
||
Thanks!
Pushed by jwwang@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/373e67c2caad
improve coding style of calling cubeb functions. r=kinetik.
Comment 5•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in
before you can comment on or make changes to this bug.
Description
•