Commit graph

44 commits

Author SHA1 Message Date
turleypol
d848deae18
POLLOG* macros use the new formatting (#598)
* POLLOG* macros use the new formatting
removed all old logging functions

* removed old fmt lib from everything except StreamWriter
removed unneeded functions

* fixed review comments
2024-01-16 17:55:42 +01:00
turleypol
0e675c516a
use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595)
* use new formatter for ERROR_PRINT, added ERROR_PRINTLN

* remove old log define

* fix comments
2024-01-12 06:51:44 +01:00
Kevin Eady
a85131f28e
Fix DynTaskThreadPool create_thread thread safety (#509) 2023-03-07 20:00:51 +01:00
turleypol
5db01e5dec
Client related threading issues (#482)
* busy flag for DynTaskPool needs to be atomic
client SocketMutex is no more static
replaced Client::Delete with a deconstructor
Client::disconnect needs to be atomic
Multiple threads want to know UOClientListener::login_clients size.
CI action which runs with Thread/AddressSanitizer
updated some github actions

* listener client size getter
corrected sanitizer build name

* ubuntu22

* Jobnames

* jobname fix, workaround for ci link error?

* use dos cmd for workaround

* fix also winnopch ci

* more unique job names
2022-11-29 07:02:53 +01:00
Eric Swanson
2cae8137f3
Enable building on OSX (clion) (#318)
* Build on OSX

* Add macos-latest to build matrix

* Fix case sensitivity checks/tests

* On osx builds, cope with unpacking a double that might be followed by either an exponent or an error (as part of an array).

Also, remove static unpack(const char*) forms that were never called.

Co-authored-by: turleypol <turley@polserver.com>
2020-09-26 06:57:10 -07:00
turleypol
5ecbbf63f4 removed dependency to boost::noncopyable 2019-02-10 14:00:55 +01:00
Fernando Rozenblit
c5984816f1 Turns out that Windows has the same wrong format specifier 2018-11-27 21:32:14 +01:00
Fernando Rozenblit
54d1a6407b Fix wrong format specifier for pointers (fmtlib) 2018-11-27 21:25:52 +01:00
turleypol
5b652badb1 windows fixes 2018-10-09 16:54:56 +02:00
turleypol
a5e6206164 Added cmake option to run clang-tidy
used everywhere nullptr
2018-10-09 16:36:35 +02:00
turleypol
5c0c611617 Worldsave is now also changed to use task pool, thus completly removed
openmp dependency
2018-04-29 19:13:11 +02:00
turleypol
862ce2ba28 Replaced ecompile openmp implementation with TaskPool
uses now more threads to compile faster
ctrl+c can now be used to abort compilation (like I always expected)
2018-04-29 14:44:50 +02:00
turleypol
3afc41241b
CMake on windows (#48)
CMake can now also be used for windows
2018-02-24 22:34:55 +01:00
turleypol
dbb25bdb62
Include and buildsystem cleanup (#45)
Include cleanup
Reworked buildsystem (Linux only)
Removed dynamic libs, Linux now again uses static linking (like windows)
2018-01-29 21:55:48 +01:00
turleypol
798eda5b63 Cleanup of header includes. 2018-01-01 21:52:14 +01:00
turley
dfccaa0ae8 avoid some copies 2016-12-15 16:59:58 +01:00
frozenblit
b01bc17688 Fix a use-after-free on the heap and simplified code
Race condition could delete a ThreadData object before it was used.
2016-02-27 23:32:25 +01:00
turley
189cad3479 Formating everything
Authors are not forced to use the clang-format setting, but should
atleast be inspired by the style.
The only thing which is now not allowed are tabs for ident/alignment!
2016-02-19 19:26:35 +01:00
Gabriele Tozzi
ff64e3b2b4 Minor: forcing SpinLock to be used only via SpinLockGuard 2016-02-03 06:08:26 +01:00
Gabriele Tozzi
d1ac902926 Documentation: reformatted headers for DoxyGen 2016-01-28 14:52:40 +01:00
Thomas Volkert
8c3c5f760a Fixed Windows build and several minor fixes 2015-11-18 23:45:16 +01:00
Thomas Volkert
0a0d1974a8 Fixed Windows build for clib 2015-11-11 00:34:18 +01:00
turley
b77a13073c corrected several data races 2015-03-14 11:45:14 +01:00
frozenblit
1f0f7581dd Some more cleanups 2014-11-03 01:29:21 +01:00
frozenblit
943b820eba More and more cleanups
Added some missing include guards, corrected wrong include guard names.
Removed more stl_inc.h includes.
2014-11-02 19:40:40 +01:00
frozenblit
4bdf06a0c7 Removed warnings from clib at level 4. Just two remain: one is related to stdafx.obj, the other to structured exceptions. Still need to investigate those. 2014-06-09 20:36:40 +00:00
turley
05c5b2d60b removed old code
testing a threadpool 
added chr.last_textcolor member which returns the clientside chatcolor
2014-06-01 09:59:12 +00:00
turley
9acf8fa43c added StackWalker lib for complete backtraces under windows
simplified some loops
fixed a crash on char death with non moveable robe layer items
2014-04-25 09:30:50 +00:00
turley
4224dd7200 fixed thread register under linux, added full backtrace on segfault/sigusr2 2014-04-12 10:55:28 +00:00
turley
31ee263a45 activated new logging facility 2014-01-18 13:29:38 +00:00
turley
99d7dc3037 namespaces...finally :)
Hard part is finished every file is touched. Namespaces are currently rough named by directory name.
Maybe we could split it more
2013-12-21 09:10:46 +00:00
turley
3db7906b15 message_queue: added list based pop, should be a bit more efficient for the streamsaver 2013-10-13 16:26:35 +00:00
turley
10f6277683 msg_queue: new method to move the msg directly into the queue
streamsaver: changed the writer to unique_ptr and move directly into queue
clienttransmit: move transmitdata directly into the queue
itemdesc: removed several external maps, added save_on_exit member
items: added pointer to itemdesc and use it directly
2013-10-12 15:06:43 +00:00
turley
7e502c8099 Added checked_push to the thread pool, returns a future which will be set once the msg is processed.
The normal push method guarantees only that the msg is finished after deconstruction of the pool.
2013-10-08 13:36:31 +00:00
turley
c9d84ac3af some by-product during the safe optimization. LocalThreadPool creates worker threads and blocks on deconstruction. void functions aka lambdas are used as payload. 2013-10-08 11:01:48 +00:00
turley
b0338db350 some c++11 changes 2013-09-21 09:45:04 +00:00
turley
115dd7b2cc some more threadsafe stuff 2012-01-04 13:11:43 +00:00
turley
b35cbd463d finished pkt refactoring
gave threads names under windows for better debugging
fixed memoryleak in ItemGivenEvent
2011-12-19 16:34:21 +00:00
frozenblit
cc04672bb8 child_threads was uninitialized 2010-07-19 18:31:28 +00:00
frozenblit
eb61009c6e Fixed some possibilities of leaking if an exception was thrown and a few other warnings (all the rest, code analysis) 2010-07-10 20:02:50 +00:00
turley
e10cd27cea sync: shini - long to int (prerequisit for 64-bit) 2010-03-29 14:52:03 +00:00
turley
f7cf2cf1a6 fixed several possible bufferoverruns
multiplacement checks for valid loc with center+min/max
added uotool small helper param formatdesc to get singular/plural version of desc
removed needed "realm=" for staticdefrag
2010-01-30 12:49:54 +00:00
turley
438bab30ed fix for latest gcc - patch by che
with defined USE_SYSTEM_ZLIB uses system zlib - che
2010-01-06 08:30:57 +00:00
muaddib_pol
d032ee448f + POL is now, open source. 2009-09-03 19:44:42 +00:00