Category : C Source Code
Archive   : PCTHREAD.ZIP
Filename : TEST3.C
* test3.c
*/
#include "pcthread.h"
static pcthread_attr_t th_handle;
static pcthread_attr_t thAttr_handle;
static pcthread_mutexattr_t muAttr_handle;
static pcthread_condattr_t cvAttr_handle;
static void action_routine( void );
static int dummy_arg;
main()
{
int status;
policy_t policy = priority_decay_c;
(void) pcthread_mutexattr_create((pcthread_mutexattr_t *) &muAttr_handle);
(void) pcthread_condattr_create((pcthread_condattr_t *) &cvAttr_handle );
(void) pcthread_attr_create((pcthread_attr_t *) &thAttr_handle );
(void) pcthread_create( (pcthread_t *) &th_handle,
thAttr_handle,
(pcthread_action_t) action_routine,
(pcthread_addr_t *) &dummy_arg );
status = pcthread_attr_setdefaults_ns( policy, 4, 32, 10, 1024, true );
return;
}
void
action_routine()
{
return;
}
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/