w3c/webrtc-pc — pull request #22 by martinthomson (2014-11-04 00:58:44+00:00)
Title: First cut at fixing the whole "queue a task" mess

This turned out to be a little tricky. Rather than redefine "queue a task", which would have touched a lot of the spec (see the first commit here, which is basically content-free), I've defined a new label. "Queue an RTCPeerConnection task" is a new definition that this adds, which is attached to a PC-specific task queue. This serializes all of the mutation functions: create{Offer|Answer}, set{Local|Remote}Description, {add|remove}Track, createDataChannel and getIdentityAssertion.

This probably needs careful review.