diff options
author | David Robillard <d@drobilla.net> | 2007-01-10 03:26:22 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-01-10 03:26:22 +0000 |
commit | 2d62ded1aa92b82d696fb37c952732ae1a309011 (patch) | |
tree | 656623bf94a288679250e1448e5aeb0c0050f19a /libs/ardour/osc.cc | |
parent | 5c7a3c680b1dc09bda55401b18d27b98f3b312cb (diff) |
Reduced allocated stack sizes. Trims about 13MB of memory consumption.
git-svn-id: svn://localhost/ardour2/trunk@1293 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/osc.cc')
-rw-r--r-- | libs/ardour/osc.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/ardour/osc.cc b/libs/ardour/osc.cc index c43f254f6f..c3e9147152 100644 --- a/libs/ardour/osc.cc +++ b/libs/ardour/osc.cc @@ -199,10 +199,15 @@ OSC::init_osc_thread () return false; } + pthread_attr_t attr; + pthread_attr_init(&attr); + pthread_attr_setstacksize(&attr, 500000); + pthread_create (&_osc_thread, NULL, &OSC::_osc_receiver, this); if (!_osc_thread) { return false; } + pthread_attr_destroy(&attr); //pthread_detach (_osc_thread); return true; |