1
0
mirror of https://gitlab.xiph.org/xiph/icecast-common.git synced 2024-11-03 04:17:20 -05:00
Commit Graph

51 Commits

Author SHA1 Message Date
Philipp Schafft
b6489e7e2d Update: Renamed PROTECT_CODE() to IGLOO_PROTECT_CODE()
Is this macro in use at all?
2018-10-12 11:34:55 +00:00
Philipp Schafft
2f7226c8bd Update: Added "igloo_" to all #defines and types 2018-10-12 11:27:17 +00:00
Philipp Schafft
5cc52a7b3d Update: Added "igloo_" to all experted symbols 2018-10-12 10:55:24 +00:00
Philipp Schafft
f2efba644c Update: Corrected years of copyright 2018-10-12 10:28:09 +00:00
Philipp Schafft
60ab7b13b7 Cleanup: Corrected include guards 2018-10-12 10:16:06 +00:00
Philipp Schafft
e4a483d71e Cleanup: Removed _mangle() 2018-10-12 10:12:56 +00:00
Marvin Scholz
d8885f5668 Make common a separate library 2018-10-11 15:43:00 +02:00
Philipp Schafft
11b9c61ae7 Update: Removed unused variable.
I'm not sure if we should check for the result of pthread_join().
But how it was doesn't do that anyway.
2018-06-20 06:37:10 +00:00
Philipp Schafft
001667626c Porting: Allow build on Android
This allows to build the threading module on Android. Android has
a little reduced implementation for POSIX threads.

This is a clean version of patches from
 Stephan Jauernick <info@stephan-jauernick.de> and
 Marvin Scholz <epirat07@gmail.com>.
2016-03-18 08:51:27 +00:00
Marvin Scholz
d3904369e8 Cleanup: corrected use of white spaces 2016-03-18 08:45:26 +00:00
Marvin Scholz
b182f8df1b Fix Makefiles usage of deprecated INCLUDES variable 2015-11-28 13:21:03 +01:00
Philipp Schafft
31c0511a7f Cleanup: remove unused var 2015-11-04 14:24:12 +00:00
Thomas B. Ruecker
8685e6ed5a Explicitly license httpp log net thread and timing
This change was ACKd by all authors and explicitly states the license
to be LGPLv2 in all files to match COPYING. This removes ambiguity
when using these files e.g. as part of libshout.

For a list of authors, pease refer to the copyright headers of each
file.
2014-12-05 09:31:08 +00:00
Karl Heyes
3937e807fe Add handlers for spinlocks if available, map to mutexes when not.
svn path=/icecast/trunk/thread/; revision=15614
2009-01-09 03:18:03 +00:00
Karl Heyes
e649b8e209 reduce stack allocation to 512k, the defaults tend to be quite large
svn path=/icecast/trunk/thread/; revision=10018
2005-09-15 22:33:13 +00:00
oddsock
050d5b9026 implement.h, a pthreads include file, is no longer required for win32.
svn path=/icecast/trunk/thread/; revision=9635
2005-07-28 21:10:29 +00:00
brendan
9f9c163bb2 Move .cvsignore into svn:ignore
svn path=/icecast/trunk/avl/; revision=7021
2004-07-06 19:22:26 +00:00
Karl Heyes
a3b60b2713 minor cleanups, and only have one thread responding to TERM
svn path=/trunk/avl/; revision=5787
2004-01-27 02:16:25 +00:00
Karl Heyes
68bf65ca25 Plug small memory leak when a thread exits.
Allow new threads to inherit scheduling policy.
Use long instead of int in thread_exit, thanks to the ports maintainers for
the heads up.

svn path=/trunk/thread/; revision=5179
2003-07-27 18:19:31 +00:00
brendan
909455fd42 Assign LGP to thread module
svn path=/trunk/thread/; revision=5138
2003-07-14 02:17:52 +00:00
brendan
29fa0ec38f The last of the convenience lib cleanups. A little forethought in designing
a keyboard macro made this one a lot easier.

svn path=/trunk/thread/; revision=5090
2003-07-07 20:38:34 +00:00
brendan
11fbb2eb0c Get everthing in make dist, and remove bitkeeper cruft
svn path=/trunk/avl/; revision=5050
2003-07-03 12:59:06 +00:00
Michael Smith
d0cf9fe000 Brendan was getting pissed off about inconsistent indentation styles.
Convert all tabs to 4 spaces. All code must now use 4 space indents.

svn path=/trunk/avl/; revision=4492
2003-03-15 02:10:19 +00:00
Karl Heyes
6198c728e1 avoid freeing a thread structure a second time.
svn path=/trunk/thread/; revision=4477
2003-03-12 03:59:55 +00:00
Karl Heyes
a420bd0b4f reduce include file namespace clutter for libshout and the associated
smaller libs.

svn path=/trunk/avl/; revision=4456
2003-03-09 22:56:46 +00:00
Karl Heyes
2116bd0d5e include the automake config.h file if the application defines one
svn path=/trunk/avl/; revision=4450
2003-03-08 16:05:38 +00:00
Karl Heyes
f5c688d43b more on the XIPH_CFLAGS. For the smaller libs like thread etc put any
passed flags into the compiling rules.  Also configure in libshout now
sets up the XIPH_CFLAGS

svn path=/trunk/avl/; revision=4439
2003-03-08 00:46:59 +00:00
brendan
35dedf9ac4 Remove some namespace pollution
svn path=/trunk/thread/; revision=4409
2003-03-05 19:52:10 +00:00
Michael Smith
eb9a7d367f Make various thread structures omit the bits only used in debug mode.
Some of these are pretty heavily used, so saving 10-20 bytes each can be
quite significant.

No functional differences.

svn path=/trunk/thread/; revision=4401
2003-03-04 15:31:34 +00:00
Michael Smith
38a1834bd6 Fix some warnings, fix cflags.
svn path=/trunk/httpp/; revision=4258
2003-01-17 09:01:04 +00:00
Michael Smith
9c11962154 Rename thread_t to avoid problems on OS X
svn path=/trunk/thread/; revision=4170
2002-12-29 09:55:50 +00:00
Michael Smith
4453518a8e Lots of bugfixes contributed by Karl Heyes.
svn path=/trunk/thread/; revision=4111
2002-11-22 13:00:44 +00:00
Michael Smith
fc3bc41c22 Bugfix: thread_join is often called after a thread has already exited, which it
does using thread_exit(). thread_exit() was freeing the thread structure, so
thread_join was using freed memory. Rearrange things so that if the thread
is detached, the freeing happens in thread_join instead.

svn path=/trunk/thread/; revision=3944
2002-09-24 07:09:08 +00:00
Michael Smith
0dcf81c72c Liberally sprinkle #ifdef THREAD_DEBUG around so libshout doesn't need to link
with it.

svn path=/trunk/thread/; revision=3835
2002-08-16 14:23:17 +00:00
Michael Smith
815158a582 Timing fixes
svn path=/trunk/thread/; revision=3808
2002-08-13 01:08:15 +00:00
Michael Smith
30577a1391 Various cleanups
svn path=/trunk/log/; revision=3791
2002-08-10 03:22:44 +00:00
Michael Smith
379cb518d5 oddsock's xslt stats support, slightly cleaned up
svn path=/trunk/thread/; revision=3772
2002-08-09 06:52:07 +00:00
Michael Smith
68db62a86f Cleaned up version of Ciaran Anscomb's relaying patch.
svn path=/trunk/httpp/; revision=3760
2002-08-05 14:48:04 +00:00
Michael Smith
78c08c5f10 Lots of patches committable now that my sound card works properly again.
logging API changed slightly (I got sick of gcc warnings about deprecated
features).

resampling (for live input, not yet for reencoding) is in there.

several patches from Karl Heyes have been incorporated.

svn path=/trunk/log/; revision=3751
2002-08-03 08:14:56 +00:00
Michael Smith
3379751e19 Don't use start after freeing it in thread startup code.
svn path=/trunk/thread/; revision=3264
2002-04-30 06:50:47 +00:00
Jack Moffitt
08be376dd4 win32 patches from Ed
svn path=/trunk/thread/; revision=3123
2002-03-05 23:59:38 +00:00
Jack Moffitt
2566c7f75b More win32 fixes.
svn path=/trunk/thread/; revision=3033
2002-02-08 03:51:19 +00:00
Jack Moffitt
c334915e67 minor build fixes for win32 courtesy of Oddsock
svn path=/trunk/net/; revision=3029
2002-02-07 01:04:09 +00:00
Jack Moffitt
0f3efddf60 Revert the stacksize work. It's stupid.
The original patch from Ben Laurie some years ago was needed because
FreeBSD's default stack size was < 8k and this wasn't acceptable.
Both Linux and Solaris had reasonable defaults for stacksize, or grew the
stack as needed to a reasonable size.

Testing today and consulting documentation shows that the default stack
sizes on FreeBSD, Linux, and Solaris are all acceptable.  Linux can grow
to 2MB, 32bit Solaris defaults to 1MB, 64bit Solaris defaults to 2MB, and
FreeBSD defaults to 64k.

In my opinion FreeBSD needs to get with the program and provide a
reasonable default.  64k is enough for us, but might not be for others.

svn path=/trunk/thread/; revision=2222
2001-10-21 02:04:27 +00:00
Jack Moffitt
951996a8c5 Fix header definition.
svn path=/trunk/thread/; revision=2219
2001-10-20 22:40:28 +00:00
Jack Moffitt
5a4f095bcd Stack size per thread needs to be configurable. Setting it on a global
bases is not enough.  ices and icecast need this to be different, and
if one is interested in tuning memory usage, one will want to alter this
per thread.

svn path=/trunk/thread/; revision=2217
2001-10-20 22:27:52 +00:00
Jack Moffitt
dd9da9ddb2 Win32 fixes. Specifically a header change and not using the gcc extensions
for vararg macros.  It's not as pretty, but it works.

svn path=/trunk/thread/; revision=2193
2001-10-20 05:35:30 +00:00
Jack Moffitt
a3c3d6f277 Oddsock found this bug when working with icecast2 on freebsd. Nanoseconds
were off by a few orders of magnitude.

svn path=/trunk/thread/; revision=2187
2001-10-20 03:39:10 +00:00
Jack Moffitt
c56ec17b07 .cvsignore is fun!
svn path=/trunk/avl/; revision=2006
2001-09-10 03:04:11 +00:00
Jack Moffitt
7ac9b65d23 Still more .cvsignore
svn path=/trunk/avl/; revision=2005
2001-09-10 03:00:41 +00:00