aboutsummaryrefslogtreecommitdiff
path: root/src/threadengines
Commit message (Expand)AuthorAgeFilesLines
* threadengine_pthread Throw CoreExceptions instead of CoreException pointersGravatar Attila Molnar2015-02-021-2/+2
* Fix fd and minor memory leak in threadengine_pthread on unload of m_mysqlGravatar attilamolnar2013-08-271-0/+11
* Clean up error handling in threadengine_win32Gravatar attilamolnar2013-07-121-8/+2
* Fix thread handle leak in threadengine_win32Gravatar attilamolnar2013-05-151-0/+1
* Windows: In-depth cleanup (see details)•••-Fix x64 builds for Windows. Now all configurations compile. -Remove the non-working rebase stuff. -Remove the Windows fork hack and instead use FreeConsole() to emulate the behavior. This directly allows us to compile with ASLR, which is turned on now. -Remove the old IPC mechanism for the removed GUI. This is not needed anymore as the GUI wasn't ever supported on anything newer than 1.2 -Remove the WIN32/WINDOWS macros. _WIN32 is supported on all x86-based VC++ targets, so that's what we need. -Enable optimizations for release builds. -De-duplicate printf_c(), it was previously copy-pasted into colors.h for configure -Add the VC++ specific bad files in .gitignore -Disable PID writing on Windows. This is only making sense for *nix builds. -Replace the CPU usage retrieval with an algorithm analogous to the *nix behavior. Also supports separated now/total values. (Tested with a dummy busy loop - seems working) -Removed certain unused functions and variables -Remove stdint defines from the windows wrapper -Remove CRT debug alloc. This is a bad idea as it would define a macro to replace free which breaks builds. -Re-evaluated the warnings list, commented it. -Moved inspircd_config/_version to include/ to match *nix -Removed the creation of inspircd_se_config, as it isn't used at all. -Made non-git builds show as "r0" instead of "r" (thanks to @SaberUK for pointing this out) -Fixed up m_spanningtree's project paths. Now all configurations (debug/release x86/x64) have been tested and build properly. -Moved FindDNS out of the wrapper and matched its log behavior with *nix. (It's pointless having it in the wrapper after the recent slimming down) -Replaced random/srandom wrappers with a mechanism that tries to use Windows' Random API first is no SSL module is loaded. -Removed more old junk from support for compilers older than VC++ 2010 (we don't have project files for these, so compiling them would be hard anyways) -Removed the unused ClearConsole() -Removed unused includes from the wrapper. Also, do not include psapi.h here if we don't link psapi.lib. This should be done where appropriate. -Made inet_aton an inline function for increased performance -C4800, performance warning about bool forcing, resolved at all occurrences. -C4701, uninitialized variable 'cached', resolved at all occurrences. -dlerror() was migrated out of the wrapper for more thread safety (no global buffer being shared) and increased performance. -Removed the wrong CRT debug flags. This drains a lot of performance. -Removed the clock_gettime/gettimeofday wrappers -Replaced all TCHAR/ANSI mix-ups of functions with the correct respective function. -Added a block of C4355 for < VS2012 -Update project files for c870714 Gravatar ChrisTX2012-10-121-1/+10
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-192-16/+30
* Fix WSAEWOULDBLOCK error on Windows•••Making a connection and then immediately accepting it is not synchronous on Windows; force the accept to block and wait for the connection we just made. Gravatar Daniel De Graaf2011-06-181-0/+1
* Fix incorrect typecastGravatar Daniel De Graaf2011-06-061-1/+1
* Change ThreadSignalSocket to EventHandler to avoid calling recv() on an event...Gravatar Daniel De Graaf2010-08-041-21/+36
* Use EFD_NONBLOCK in test creation of eventfd (makes it require glibc 2.8/linu...Gravatar Daniel De Graaf2010-05-211-1/+1
* ...because every now and again, i have to do a massive commit.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2010-01-112-2/+2
* Fix double-cull of users quitting due to connection error•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12105 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-11-122-0/+3
* Fixes for SocketThread, missing overload, and a left in deprecated variable.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11832 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2009-10-111-2/+6
* Compile fixes.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11831 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2009-10-111-3/+3
* Remove InspIRCd* parameters and fields•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-262-5/+5
* Create StreamSocket for IO hooking implementation•••Fixes the SSL SendQ bug Removes duplicate code between User and BufferedSocket Simplify SSL module API Simplify EventHandler API (Readable/Writeable moved to SE) Add hook for culled objects to invoke callbacks prior to destructor Replace SocketCull with GlobalCull now that sockets can close themselves Shorten common case of user read/parse/write path: User::Write is now zero-copy up to syscall/SSL invocation User::Read has only two copy/scan passes from read() to ProcessCommand git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11752 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-212-27/+23
* ThreadWindows: Remove ThreadSignalListener and connect the socket right away•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11617 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-021-39/+17
* Cast rework: use C++ style static_cast<> instead of C-style casts•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11595 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-022-2/+2
* Remove unneeded #ifdef IPV6 lines•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11582 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-011-14/+3
* Remove unneeded paramaters from OnAcceptReady•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11581 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-011-4/+3
* Fix a compile error for IPv6 windows builds, discovered by Flo•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11519 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar special2009-08-141-1/+8
* Change to using read/write not send/recv on the ThreadSignalSocket pipe•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11506 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-08-121-2/+2
* Fix double-free in ~SocketThread•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11501 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-08-111-1/+0
* Make this compile•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11264 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2009-03-251-6/+5
* Fix some win32 compile errors, thanks for error output therock247uk•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11263 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-03-251-8/+12
* more of the fix but it still doesnt build. I know we said this might be unsta...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11261 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2009-03-251-1/+1
* Add test-compile checks for epoll and eventfd•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11253 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-03-231-6/+3
* ThreadEngine: Allow interthread signaling without needing as many hacks•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11251 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-03-232-1/+177
* ThreadEngine: remove MutexFactory, mutexes should be constructed using their ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11250 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-03-232-68/+14
* ThreadEngine: remove excessive mutex use on thread creation•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11249 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-03-232-129/+39
* Update all wiki links to point to the new wiki. This was done automatically w...•••for file in $(find -type f -and -not -path '*/.svn/*' -and -not -name '*.so') ; do sed -e 's#http://www.inspircd.org/wiki#http://wiki.inspircd.org#' -e 's#http://wiki.inspircd.org/index.php/#http://wiki.inspircd.org/#' -i $file ; done git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11223 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar psychon2009-03-152-2/+2
* Update copyrights for 2009.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2009-01-022-2/+2
* Suggested by nenolod, lets add this for thread signal safety•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10605 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-09-281-0/+8
* MutexEngine -> MutexFactory, more sensible name•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10385 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-09-042-4/+4
* fix posix mutexes•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10382 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-09-041-2/+2
* ability to create mutexes (rather than just having one system wide mutex) in ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10381 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-09-042-0/+52
* Apply patches to remove 200-odd dll limit on windows, made by GreenReaper, lo...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9533 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-04-181-2/+3
* Remove annoying debug•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9027 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-02-241-2/+0
* Add mutexes to this to make it a bit more threadsafe•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9025 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-02-241-0/+2
* Comments•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9010 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-02-221-0/+13
* Add the same thread safety checks to this, now ive got the project as a whole...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9009 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-02-221-1/+9
* Thread safety stuff, waiting for pointer to become 'safe' before changing it ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9007 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-02-221-1/+8
* Debug removal•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9006 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-02-221-9/+0
* Forgot to initialize critical section. somehow, the new logging code exposed ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9005 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-02-221-0/+10
* Add mutex wrappers•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8996 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-02-221-0/+5
* Add mutex wrappers•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8995 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-02-221-0/+3
* Now compiles with win32thread and testsuite•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8993 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-02-221-2/+0
* Closer to compilation•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8992 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-02-221-3/+2
* Configure macros not needed here•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8991 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-02-221-11/+0
* Win32ThreadEngine makes sense now. No gaurantees it compiles yet.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8990 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-02-221-30/+15