removed port unblock workaround, as port API should work now similar to BeOS R5
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16671 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -438,7 +438,6 @@ BMediaEventLooper::Quit()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
SetRunState(B_QUITTING);
|
SetRunState(B_QUITTING);
|
||||||
write_port(ControlPort(), 0, NULL, 0); // null message to unblock the read (see BMediaNode::WaitForMessage)
|
|
||||||
close_port(ControlPort());
|
close_port(ControlPort());
|
||||||
if (fControlThread != -1) {
|
if (fControlThread != -1) {
|
||||||
status_t err;
|
status_t err;
|
||||||
|
|||||||
@@ -362,8 +362,6 @@ BMediaNode::WaitForMessage(bigtime_t waitUntil,
|
|||||||
if (size != B_TIMED_OUT)
|
if (size != B_TIMED_OUT)
|
||||||
ERROR("BMediaNode::WaitForMessage: read_port_etc error 0x%08lx\n",size);
|
ERROR("BMediaNode::WaitForMessage: read_port_etc error 0x%08lx\n",size);
|
||||||
return size; // return the error code
|
return size; // return the error code
|
||||||
} else if (size == 0 && message == 0) {
|
|
||||||
return B_OK; // a null message was received (to unblock the read)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PRINT(7, "BMediaNode::WaitForMessage %#lx, node %ld, this %p\n", message, fNodeID, this);
|
PRINT(7, "BMediaNode::WaitForMessage %#lx, node %ld, this %p\n", message, fNodeID, this);
|
||||||
|
|||||||
Reference in New Issue
Block a user