Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/concurrent/clib.c

    ra5e7233 rdf65c0c  
    22#include <stdlib.h>
    33#include <clib/cfathread.h>
    4 #include <bits/defs.hfa>
    54
    65extern "C" {
     
    6261        cfathread_cluster_add_worker( cl, NULL, NULL, NULL );
    6362        cfathread_cluster_add_worker( cl, NULL, NULL, NULL );
    64 
    65         cfathread_attr_t attr;
    66         cfathread_attr_init(&attr);
    67         cfathread_attr_setcluster(&attr, cl);
    68 
    6963        cfathread_t u;
    70         cfathread_create( &u, &attr, Unparker, NULL );
     64        cfathread_create( &u, NULL, Unparker, NULL );
    7165        {
    7266                cfathread_t t[20];
    7367                for(int i = 0; i < 20; i++) {
    74                         cfathread_create( &t[i], &attr, Worker, NULL );
     68                        cfathread_create( &t[i], NULL, Worker, NULL );
    7569                }
    7670                for(int i = 0; i < 20; i++) {
     
    8074        stop = true;
    8175        cfathread_join(u, NULL);
    82         cfathread_attr_destroy(&attr);
    8376        fflush(stdout);
    8477        _exit(0);
Note: See TracChangeset for help on using the changeset viewer.