aboutsummaryrefslogtreecommitdiff
path: root/include/threadengines/threadengine_win32.h
Commit message (Collapse)AuthorAgeFilesLines
* Replace socketengine_{pthread,win32} with C++11 threads.Gravatar Sadie Powell2019-05-151-139/+0
|
* Inherit ThreadQueueData from Mutex to avoid duplicating codeGravatar Attila Molnar2014-06-241-16/+3
|
* Move and rename class ThreadData to ThreadEngine::ThreadStateGravatar Attila Molnar2014-06-241-6/+7
|
* Move and rename ThreadData::FreeThread() to ThreadEngine::Stop() and ↵Gravatar Attila Molnar2014-06-241-1/+12
| | | | document what it does
* Remove empty ThreadEngine constructors and destructorsGravatar Attila Molnar2014-06-241-5/+0
|
* Remove the unused ThreadEngine::GetName() method from both implementationsGravatar Attila Molnar2014-06-241-8/+0
|
* Tidy up source files:Gravatar Peter Powell2013-04-121-5/+1
| | | | | | - Use #pragma once instead of include guards. - Move header files in src/modules to include/modules. - Fixed various spacing issues.
* Merge inspircd_{config,version}.h into a single header file.Gravatar Peter Powell2013-04-051-1/+1
|
* Windows: In-depth cleanup (see details)Gravatar ChrisTX2012-10-121-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -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
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+15
|
* Fix some of the include guard names (requested by SaberUK)Gravatar Justin Crawford2012-04-141-2/+2
|
* Fixes for bug #12Gravatar Justin Crawford2012-04-141-2/+2
|
* ...because every now and again, i have to do a massive commit.Gravatar brain2010-01-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove InspIRCd* parameters and fieldsGravatar danieldg2009-09-261-2/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove unneeded Extensible inheritance and remove "age" field from classbaseGravatar danieldg2009-09-021-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11611 e03df62e-2008-0410-955e-edbf42e46eb7
* start of fix for bug #805Gravatar brain2009-03-251-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11260 e03df62e-2008-0410-955e-edbf42e46eb7
* ThreadEngine: Allow interthread signaling without needing as many hacksGravatar danieldg2009-03-231-0/+49
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11251 e03df62e-2008-0410-955e-edbf42e46eb7
* ThreadEngine: remove MutexFactory, mutexes should be constructed using their ↵Gravatar danieldg2009-03-231-27/+49
| | | | | | constructor git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11250 e03df62e-2008-0410-955e-edbf42e46eb7
* ThreadEngine: remove excessive mutex use on thread creationGravatar danieldg2009-03-231-10/+9
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11249 e03df62e-2008-0410-955e-edbf42e46eb7
* Update all wiki links to point to the new wiki. This was done automatically ↵Gravatar psychon2009-03-151-1/+1
| | | | | | | | | with the following command, only .Makefile.inc got some indent fixups by hand. 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
* Update copyrights for 2009.Gravatar w00t2009-01-021-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7
* Make ThreadEngine::Mutex() protected too, make the user use Lock() and Unlock()Gravatar brain2008-09-061-2/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10418 e03df62e-2008-0410-955e-edbf42e46eb7
* MutexEngine -> MutexFactory, more sensible nameGravatar brain2008-09-041-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10385 e03df62e-2008-0410-955e-edbf42e46eb7
* ability to create mutexes (rather than just having one system wide mutex) in ↵Gravatar brain2008-09-041-0/+19
| | | | | | the threadengines, allows for migration of m_mysql etc. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10381 e03df62e-2008-0410-955e-edbf42e46eb7
* CoreExport is required for the factoriesGravatar brain2008-02-221-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9011 e03df62e-2008-0410-955e-edbf42e46eb7
* Now compiles with win32thread and testsuiteGravatar brain2008-02-221-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8993 e03df62e-2008-0410-955e-edbf42e46eb7
* Closer to compilationGravatar brain2008-02-221-1/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8992 e03df62e-2008-0410-955e-edbf42e46eb7
* Win32ThreadEngine makes sense now. No gaurantees it compiles yet.Gravatar brain2008-02-221-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8990 e03df62e-2008-0410-955e-edbf42e46eb7
* These are just copies of the pthread engine right now, will probably make ↵Gravatar brain2008-02-211-0/+58
| | | | | | them work tomorrow night git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8988 e03df62e-2008-0410-955e-edbf42e46eb7
* Add threading engine stuff. Docs to follow, untested and not used anywhere yetGravatar brain2008-02-101-0/+0
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8874 e03df62e-2008-0410-955e-edbf42e46eb7