~ubuntu-branches/ubuntu/breezy/gnustep-base/breezy

« back to all changes in this revision

Viewing changes to Testing/thread-except.m

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese
  • Date: 2005-09-11 12:16:07 UTC
  • mfrom: (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050911121607-cqyghsqpbjwqva0i
Tags: 1.10.3-2build1
RebuildĀ forĀ dependencies.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
{
39
39
  int i, n;
40
40
  CREATE_AUTORELEASE_POOL(pool);
41
 
  
 
41
 
42
42
  NS_DURING
43
43
    n = 1+(int)((MAX_ITER*rand())/(RAND_MAX+1.0));
44
44
    fflush(stdout);
76
76
    for (i = 0; i < N; i++)
77
77
      [NSThread detachNewThreadSelector: @selector(runWith:)
78
78
                toTarget: threads[i] withObject: nil];
79
 
  
 
79
 
80
80
    // Hopefully this will end after all the other threads end.
81
81
    for (i = 0; i < N*MAX_ITER; i++)
82
82
      {