mirror of
https://github.com/godotengine/godot.git
synced 2025-01-30 21:33:18 +08:00
18fbdbb456
Main: - It's now implemented thanks to `<mutex>`. No more platform-specific implementations. - `BinaryMutex` (non-recursive) is added, as an alternative for special cases. - Doesn't need allocation/deallocation anymore. It can live in the stack and be part of other classes. - Because of that, it's methods are now `const` and the inner mutex is `mutable` so it can be easily used in `const` contexts. - A no-op implementation is provided if `NO_THREADS` is defined. No more need to add `#ifdef NO_THREADS` just for this. - `MutexLock` now takes a reference. At this point the cases of null `Mutex`es are rare. If you ever need that, just don't use `MutexLock`. - Thread-safe utilities are therefore simpler now. Misc.: - `ScopedMutexLock` is dropped and replaced by `MutexLock`, because they were pretty much the same. - Every case of lock, do-something, unlock is replaced by `MutexLock` (complex cases where it's not straightfoward are kept as as explicit lock and unlock). - `ShaderRD` contained an `std::mutex`, which has been replaced by `Mutex`. |
||
---|---|---|
.. | ||
compression.cpp | ||
compression.h | ||
config_file.cpp | ||
config_file.h | ||
dtls_server.cpp | ||
dtls_server.h | ||
file_access_buffered_fa.h | ||
file_access_buffered.cpp | ||
file_access_buffered.h | ||
file_access_compressed.cpp | ||
file_access_compressed.h | ||
file_access_encrypted.cpp | ||
file_access_encrypted.h | ||
file_access_memory.cpp | ||
file_access_memory.h | ||
file_access_network.cpp | ||
file_access_network.h | ||
file_access_pack.cpp | ||
file_access_pack.h | ||
file_access_zip.cpp | ||
file_access_zip.h | ||
http_client.cpp | ||
http_client.h | ||
image_loader.cpp | ||
image_loader.h | ||
ip_address.cpp | ||
ip_address.h | ||
ip.cpp | ||
ip.h | ||
json.cpp | ||
json.h | ||
logger.cpp | ||
logger.h | ||
marshalls.cpp | ||
marshalls.h | ||
multiplayer_api.cpp | ||
multiplayer_api.h | ||
net_socket.cpp | ||
net_socket.h | ||
networked_multiplayer_peer.cpp | ||
networked_multiplayer_peer.h | ||
packet_peer_dtls.cpp | ||
packet_peer_dtls.h | ||
packet_peer_udp.cpp | ||
packet_peer_udp.h | ||
packet_peer.cpp | ||
packet_peer.h | ||
pck_packer.cpp | ||
pck_packer.h | ||
resource_format_binary.cpp | ||
resource_format_binary.h | ||
resource_importer.cpp | ||
resource_importer.h | ||
resource_loader.cpp | ||
resource_loader.h | ||
resource_saver.cpp | ||
resource_saver.h | ||
SCsub | ||
stream_peer_ssl.cpp | ||
stream_peer_ssl.h | ||
stream_peer_tcp.cpp | ||
stream_peer_tcp.h | ||
stream_peer.cpp | ||
stream_peer.h | ||
tcp_server.cpp | ||
tcp_server.h | ||
translation_loader_po.cpp | ||
translation_loader_po.h | ||
udp_server.cpp | ||
udp_server.h | ||
xml_parser.cpp | ||
xml_parser.h | ||
zip_io.cpp | ||
zip_io.h |