mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
EmergeManager: Do not queue duplicate block requests
This commit is contained in:
parent
b67eab3b00
commit
9f988e3b96
2 changed files with 18 additions and 6 deletions
11
src/emerge.h
11
src/emerge.h
|
@ -159,8 +159,15 @@ private:
|
|||
|
||||
// Requires m_queue_mutex held
|
||||
EmergeThread *getOptimalThread();
|
||||
bool pushBlockEmergeData(v3s16 pos, u16 peer_requested, u16 flags,
|
||||
EmergeCompletionCallback callback, void *callback_param);
|
||||
|
||||
bool pushBlockEmergeData(
|
||||
v3s16 pos,
|
||||
u16 peer_requested,
|
||||
u16 flags,
|
||||
EmergeCompletionCallback callback,
|
||||
void *callback_param,
|
||||
bool *entry_already_exists);
|
||||
|
||||
bool popBlockEmergeData(v3s16 pos, BlockEmergeData *bedata);
|
||||
|
||||
friend class EmergeThread;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue