aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/Threading
AgeCommit message (Collapse)Author
2015-08-21Core/Build: Merge common library and move database out of sharedStormBytePP
2015-07-15Core/Threading: Clarified comment on ProducerConsumerQueue::WaitAndPopShauren
2015-06-13Core/Misc: Warning fixesShauren
2015-04-24Core/Socket: Removed unused synchronous read methodShauren
2015-04-04Misc: Fixed license header formattingShauren
2015-01-01Update copyright note for 2015Vincent-Michael
Happy new year
2014-11-03Core/NetworkIO: implemented undelete opcodes and moved char create/delete ↵joschiwald
packets to new packet classes
2014-10-02Fixed ==25829== Thread #1: pthread_cond_{signal,broadcast}: dubious: ↵Shauren
associated lock is not held by any thread ==25829== at 0x4C2A1D5: pthread_cond_broadcast_WRK (hg_intercepts.c:891) ==25829== by 0x654A758: std::condition_variable::notify_all() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17) ==25829== by 0x132305A: ProducerConsumerQueue<SQLOperation*>::Cancel() (ProducerConsumerQueue.h:100) ==25829== by 0x13229A7: DatabaseWorkerPool<WorldDatabaseConnection>::~DatabaseWorkerPool() (DatabaseWorkerPool.h:70) ==25829== by 0x6C6CB21: __run_exit_handlers (exit.c:78) ==25829== by 0x6C6CB74: exit (exit.c:100) ==25829== by 0x6C54EF3: (below main) (libc-start.c:276)
2014-09-19Core/Misc: Multiple static analysis issues fixed (small optimizations and ↵DDuarte
clear code)
2014-08-12Core/Threading: Fixed possible race condition with m_timeOutTime and fixed ↵Shauren
Thread #1: pthread_cond_{signal,broadcast}: dubious: associated lock is not held by any thread in PCQ
2014-08-07Core: Kill AGAIN whitespace :(Vincent-Michael
2014-08-02Core/Shared: Fix world and auth crash on shutdown (PCQ & DbWorker)DDuarte
Fixes #12704
2014-07-27Core/Network: Optimized packet sending by removing unneccessary memory copyingShauren
2014-07-24Core/Misc: Fixed a possible crash in ProducerConsumerQueue::CancelShauren
2014-07-23Core/Misc: Silenced 500 OS X Warnings and removed deprecated finite() method.Jared P. Jones
*Mac OS X fires off over 200 warnings related to gsoap about the deprecated register method. CMake has been patched to remove this warning. *Updated all occurences of finite() to std::isfinite. The method finite() is not standardized by anyone aside from BSD. std::isfinite() however is standarized by C++ *Removed -ncurses and -pthread from OS X compilation. Now that we use Boost and C++11 there is no longer a need for pthread in OS X. All it does is throw a warning. However, ncurses isn't needed either as it's built into the OS X SDK and linked by default. Note: There are only 5 remaining warnings left when compiling on OS X. I did not attempt to fix these as they were related to 3rd party libraries statically linked into the code. The 5 warnings left are all related to unused variables.
2014-07-21Core: Kill again whitespace :(Vincent-Michael
2014-07-14Replacing ACE based multi threading with PCQleak
2014-07-09More GCC compile fixesSubv
2014-07-04Refactored both world and auth mainleak
- Master/Worldrunable removed - World Update loop now running on main (which was doing nothing before) - Processpriority moved to shared - Added a preliminary thread pool for boost::asio::io_service
2014-07-02Fixed login and some errorsSubv
2014-07-02Replaced ACE_Method_Request based DelayExecutor by PCQ implleak
Untested due to worldserver still breaking because of ACE threading fails
2014-07-01Replaced all remaining ACE based Singletonsleak
Replaced ACE base AutoPtr class with shared_ptr Note: worldserver currently broken due to MapUpdater threading failure (ACE ofc, what else could it be)
2014-06-30Replaced ACE_Task_Base based DatabaseWorker with PCQleak
Note: Not exactly sure how shutdown should be handled, currently the queue clears itself out before shutting down This might need to be changed if the queue should be fully processed before being deleted
2014-06-30Replaced ACE_Task_Base based LogWorker with ProducerConsumerQueueleak
2014-06-24Core/Databases: Removed ACE dependencies on some of the database handling code.Subv
2014-06-22Core/Dependencies: Remove ACE_Singleton dependency from the Log and ↵Subv
DelayExecutor classes. Removed an unused function.
2014-06-21Replaced Threading and SFMT access related code with std::thread and boost TSSleak
Note: The remote access thread is currently broken due to unknown ACE fail (will be replaced at some point anyways..)
2014-06-08Fix for LockedQueue.h (clean rebuilds ftw.)leak
2014-06-08Replaced mutex related code in Common.hleak
2014-06-02Replaced LockedQueue ACE lock with std::mutexleak
2014-04-29Core/Misc: Remove obsolete C++11 backward compatibility macrosDehravor
OVERRIDE, FINAL, DELETE_MEMBER
2014-04-20Core/Misc: Fixed some -Weffc++ warningsShauren
2014-01-01Update copyright note for 2014.Vincent_Michael
Happy new year.
2013-10-28Core/Code: Unify [more] codestyle for brackets: )\n{\n} to ) { }.leguybrush
2013-10-27Core/Code: Unify codestyle for brackets: {} to { }.Ascathor
Also added missing copyright to some files.
2013-08-26Core&Tools: Fix multiple issues found by a static code coverage toolNay
2013-08-25Core/Threading: Fix race condition in Threadjackpoz
Increment the reference count of m_task in Thread::start() before spawning the actual Thread that will execute the task, otherwise the thread might finish, decRef the task and delete it. Valgrind log of the issue: Invalid read of size 8 at 0x1314CAD: ACE_Atomic_Op_GCC<long>::operator++() (Atomic_Op_GCC_T.inl:34) by 0x15933FB: ACE_Based::Runnable::incReference() (Threading.h:36) by 0x1592D2D: ACE_Based::Thread::start() (Threading.cpp:136) by 0x1592C37: ACE_Based::Thread::Thread(ACE_Based::Runnable*) (Threading.cpp:111) by 0xF6C463: Master::Run() (Master.cpp:195) by 0xF725D0: main (Main.cpp:142) Address 0x26137278 is 8 bytes inside a block of size 24 free'd at 0x4C2B59C: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) by 0xF67FDB: RARunnable::~RARunnable() (RARunnable.cpp:55) by 0x1593441: ACE_Based::Runnable::decReference() (Threading.h:40) by 0x1592E92: ACE_Based::Thread::ThreadTask(void*) (Threading.cpp:186) by 0x515EA35: ACE_OS_Thread_Adapter::invoke() (in /usr/lib/libACE-6.0.3.so) by 0x5F19F8D: start_thread (pthread_create.c:311) by 0x6A46E1C: clone (clone.S:113) Closes #10619
2013-05-17Core/Misc: Fixed a bunch of issues found by static analysisShauren
2013-01-01Update copyright note for 2013.Vincent_Michael
Happy new year.
2012-11-27Core/Misc: Set mode 0644 for filesSpp
2012-11-09Core/Build: Enable Clang PCH support and OS X specific featuresSpp
Core: Fix warnings here and there
2012-09-10Core: Warning fixes (Also some -pedantic under game folder)Spp
2012-02-18Core: Clean up whitespace and tabs in the base sourcetreeclick
2012-01-01Update headers for 2012. HAPPY NEW YEAR!!!kiper
2011-12-21Fix compile error from 2d93bd07baabce1ebd9445c94e44b255a01bf490kandera
2011-12-21Core/DBLayer: More generic implementation of callback chains, instead of ↵Machiavelli
using this functionality local to CharacterCreatInfo class. Will be used in other places as well.
2011-12-21Core/DBLayer: Fix a silly error in HandleStableSwapPet (synchronous query in ↵Machiavelli
async context). Fixes possible loss of pets when swapping.
2011-12-19Core/Netcode: Fix a possible infinite loop after 829be0b82 (which was ↵Machiavelli
accidentally merged in this morning)
2011-09-29Cosmetic: Multiple cosmetic changesSpp
- Added missing space to 'if', 'for', 'while' and 'switch' when it's followed by '(' - Added missing space after a comma and remove space before comma (with some exceptions) - Remove trailing spaces - Convert tab to spaces Note: Only affects files with extension "cpp" and "h" under /src/server
2011-09-15[Cosmetic] Apply codestyle "XXX * " and "XXX *" changed to "XXX* " (with ↵Spp
some exceptions)