devilutionX/Source/dthread.h
Vladimir Olteanu dd4b70a24b
* dthread.cpp: replace TMegaPkt with DThreadStruct
* consistently use uint8_t for pnum
 * get rid of checks that never fail
 * use atomic_bool for dthread_running
* dthread: eliminate superfluous memory copies
* Pass correct-sized buffer to DeltaExportJunk
* dthread: Fix crash when list is empty
* DthreadHandler: eliminate delay
* Dthread: use SdlMutex and lock_guard
* dhtread: explicitly provide T for lock_guard
2021-07-17 15:03:51 +02:00

18 lines
423 B
C++

/**
* @file dthread.h
*
* Interface of functions for updating game state from network commands.
*/
#pragma once
#include <memory>
#include "utils/stdcompat/cstddef.hpp"
namespace devilution {
void dthread_remove_player(uint8_t pnum);
void dthread_send_delta(int pnum, _cmd_id cmd, std::unique_ptr<byte[]> data, uint32_t len);
void dthread_start();
void DThreadCleanup();
} // namespace devilution