Changeset 4d80e2b in git for Singular/tesths.cc


Ignore:
Timestamp:
Mar 13, 2013, 2:51:58 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '2234726c50d679d6664181a5c72f75a6fd64a787')
Children:
26644b1e36c8c6a0e6f8c9a50808f140e60e8f5d
Parents:
f4cb99aef04b01dbd74c27d86a41432f86153f98
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-03-13 14:51:58+01:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-03-13 14:57:49+01:00
Message:
chg: updating doc, p1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/tesths.cc

    rf4cb99a r4d80e2b  
    4949#include <time.h>
    5050#include <errno.h>
     51#ifdef HAVE_SIMPLEIPC
     52#include <Singular/links/simpleipc.h>
     53#endif
     54
     55
    5156
    5257
     
    124129    if (optc == 'h') exit(0);
    125130  }
     131
     132// semaphore0: CPUs --------------------------------------------------
     133#ifdef HAVE_SIMPLEIPC
     134  feOptIndex cpu_opt = feGetOptIndex("cpus");
     135  int cpus = (int)(long)feOptValue(FE_OPT_CPUS);
     136  sipc_semaphore_init(0, cpus);
     137#endif
    126138
    127139  /* say hello */
Note: See TracChangeset for help on using the changeset viewer.