[Mplayer-advusers] Fw: [MPlayer-users] Stack size and threads
    Attila Kinali 
    kinali at gmx.net
       
    Sat Dec 14 18:26:22 CET 2002
    
    
  
Hi
Does this make any sense to someone ?
		Attila Kinali
Begin forwarded message:
Date: Fri, 13 Dec 2002 20:47:59 +0200
From: Sinisa Milivojevic <sinisa at mysql.com>
To: mplayer-users at mplayerhq.hu
Cc: mplayer-dev-eng at mplayerhq.hu
Subject: [MPlayer-users] Stack size and threads
[Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
Hi!
I have suggestion regarding latest version of MPlayer.
You add freely 128 K to stack without making sure there is such space.
Some glibc come with smaller thread stack. Many apply patches, like
our patch that reduces stack size.
Therefore I sugest that in your init code, you use this:
  (void) pthread_attr_init(&thread_attrib);
  pthread_attr_setstacksize(&thread_attrib,1024*1024L);
  pthread_attr_setscope(&thread_attrib, PTHREAD_SCOPE_SYSTEM);
You should of course declare pthread_attr_t thread_attrib as global
variable, and pass pointer to it in each pthread_create, instead of
NULL.
That would make things a bit more stable.
-- 
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Mr. Sinisa Milivojevic <sinisa at mysql.com>
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB, Fulltime Developer
/_/  /_/\_, /___/\___\_\___/   Larnaca, Cyprus
       <___/   www.mysql.com
Join MySQL Users Conference and Expo:
http://www.mysql.com/events/uc2003/
_______________________________________________
RTFM!!!  http://www.MPlayerHQ.hu/DOCS
Search:  http://www.MPlayerHQ.hu/cgi-bin/htsearch
http://mplayerhq.hu/mailman/listinfo/mplayer-users
-- 
He! Do sitzed jo Fraue wo i nöd kenne! Was mached die do ?
		-- Emi im ETZ
    
    
More information about the MPlayer-advusers
mailing list