Closed Bug 1153151 Opened 10 years ago Closed 8 years ago

make libcube sndio use non-blocking i/o

Categories

(Core :: Audio/Video: cubeb, defect, P4)

x86_64
OpenBSD
defect

Tracking

()

RESOLVED FIXED
mozilla48

People

(Reporter: alex, Assigned: alex, Mentored)

References

Details

Attachments

(1 file)

Attached patch mc_nbio.diff (deleted) — Splinter Review
The current code is designed to use non-blocking writes to the device, but it actually uses blocking writes by mistake. The fix switches it to non-blocking i/o, making sio_write() return immediately. In turn the device mutex is held for a very short period (as intended) which likely makes other threads wait less for the mutex to be released. Tested on OpenBSD/amd64.
Mentor: landry, kinetik
Component: Audio/Video → Audio/Video: MSG/cubeb/GMP
Component: Audio/Video: MediaStreamGraph → Audio/Video: cubeb
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P4
Alex, is this patch still valid ? If so i can do the hg plumbing to get it commited..
Flags: needinfo?(alex)
it's still valid (1153179 should go in first, though).
Flags: needinfo?(alex)
Assignee: nobody → alex
Blocks: 1251502
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: