Commit 35d7376b authored by Marek Vavrusa's avatar Marek Vavrusa

Implemented 1M stack lightweight threads and default scheduling.

refs #1809
parent d3a27c64
......@@ -237,8 +237,9 @@ static dthread_t *dt_create_thread(dt_unit_t *unit)
// Initialize attribute
pthread_attr_t *attr = &thread->_attr;
pthread_attr_init(attr);
pthread_attr_setinheritsched(attr, PTHREAD_INHERIT_SCHED);
pthread_attr_setschedpolicy(attr, SCHED_OTHER);
//pthread_attr_setinheritsched(attr, PTHREAD_INHERIT_SCHED);
//pthread_attr_setschedpolicy(attr, SCHED_OTHER);
pthread_attr_setstacksize(attr, 1024*1024);
return thread;
}
......
......@@ -45,6 +45,9 @@
struct dthread_t;
struct dt_unit_t;
/* Constants. */
#define DTHREADS_STACKSIZE (1024*1024) /* 1M lightweight stack size. */
/*!
* \brief Thread state enumeration.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment