summaryrefslogtreecommitdiff
path: root/src/threadengines/threadengine_pthread.cpp
AgeCommit message (Collapse)Author
2012-04-19Replace copyright headers with headers granting specific authors copyrightRobby-
2010-08-04Change ThreadSignalSocket to EventHandler to avoid calling recv() on an ↵Daniel De Graaf
eventfd, which does not work
2010-05-21Use EFD_NONBLOCK in test creation of eventfd (makes it require glibc ↵Daniel De Graaf
2.8/linux 2.6.27)
2010-01-11...because every now and again, i have to do a massive commit.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7
2009-11-12Fix double-cull of users quitting due to connection errordanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12105 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-26Remove InspIRCd* parameters and fieldsdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-21Create StreamSocket for IO hooking implementationdanieldg
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
2009-09-02Cast rework: use C++ style static_cast<> instead of C-style castsdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11595 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-12Change to using read/write not send/recv on the ThreadSignalSocket pipedanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11506 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-11Fix double-free in ~SocketThreaddanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11501 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-23Add test-compile checks for epoll and eventfddanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11253 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-23ThreadEngine: Allow interthread signaling without needing as many hacksdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11251 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-23ThreadEngine: remove MutexFactory, mutexes should be constructed using their ↵danieldg
constructor git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11250 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-23ThreadEngine: remove excessive mutex use on thread creationdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11249 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-15Update all wiki links to point to the new wiki. This was done automatically ↵psychon
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
2009-01-02Update copyrights for 2009.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-28Suggested by nenolod, lets add this for thread signal safetybrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10605 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-04MutexEngine -> MutexFactory, more sensible namebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10385 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-04fix posix mutexesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10382 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-04ability to create mutexes (rather than just having one system wide mutex) in ↵brain
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
2008-02-24Remove annoying debugbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9027 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-24Add mutexes to this to make it a bit more threadsafebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9025 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-22Commentsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9010 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-22Thread safety stuff, waiting for pointer to become 'safe' before changing it ↵brain
(e.g. to launch another thread) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9007 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-22Add mutex wrappersbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8996 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-22Configure macros not needed herebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8991 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-21These are just copies of the pthread engine right now, will probably make ↵brain
them work tomorrow night git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8988 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-21Working thread test!!!brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8983 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-10Each Thread class must have its own thread handle, duh. Someone take away my ↵brain
craqpipe NOW. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8876 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-10Add threading engine stuff. Docs to follow, untested and not used anywhere yetbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8874 e03df62e-2008-0410-955e-edbf42e46eb7