Subversion Repositories HelenOS

Rev

Rev 4668 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4668 Rev 4688
Line 36... Line 36...
36
#include <unistd.h>
36
#include <unistd.h>
37
#include "../tester.h"
37
#include "../tester.h"
38
 
38
 
39
static atomic_t finish;
39
static atomic_t finish;
40
static atomic_t threads_finished;
40
static atomic_t threads_finished;
41
static bool sh_quiet;
-
 
42
 
41
 
43
static void threadtest(void *data)
42
static void threadtest(void *data)
44
{
43
{
45
    thread_detach(thread_get_id());
44
    thread_detach(thread_get_id());
46
   
45
   
Line 51... Line 50...
51
}
50
}
52
 
51
 
53
char *test_thread1(void)
52
char *test_thread1(void)
54
{
53
{
55
    unsigned int i;
54
    unsigned int i;
56
    unsigned int total = 0;
55
    int total = 0;
57
   
56
   
58
    atomic_set(&finish, 1);
57
    atomic_set(&finish, 1);
59
    atomic_set(&threads_finished, 0);
58
    atomic_set(&threads_finished, 0);
60
   
59
   
61
    TPRINTF("Creating threads");
60
    TPRINTF("Creating threads");