Modified flush_fifo so the code do what is written in the comment
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9489 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
188a6322a0
commit
8bd7d2873e
@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
|
|||||||
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
|
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
|
||||||
|
|
||||||
2006/12/13
|
2006/12/13
|
||||||
|
* Modified flush_fifo so the code do what is written in the comment [Toms]
|
||||||
* Modified flush_fifo so you can decide whether to block the current thread
|
* Modified flush_fifo so you can decide whether to block the current thread
|
||||||
or not until the data is sent. The server-tick reply no longer blocks the
|
or not until the data is sent. The server-tick reply no longer blocks the
|
||||||
current thread.
|
current thread.
|
||||||
|
@ -289,9 +289,9 @@ void flush_fifo(int fd, int lock)
|
|||||||
return;
|
return;
|
||||||
if (lock)
|
if (lock)
|
||||||
{ //Lock the thread until data is sent.
|
{ //Lock the thread until data is sent.
|
||||||
set_nonblocking(fd, 1);
|
|
||||||
send_from_fifo(fd);
|
|
||||||
set_nonblocking(fd, 0);
|
set_nonblocking(fd, 0);
|
||||||
|
send_from_fifo(fd);
|
||||||
|
set_nonblocking(fd, 1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//Send without locking the thread.
|
//Send without locking the thread.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user