Changeset d5bd4bc in git for Singular/tesths.cc


Ignore:
Timestamp:
Mar 13, 2013, 4:49:38 PM (10 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'ad2543eab51733612ba7d118afc77edca719600e')
Children:
04e7556fe730216bd564bec951a95057bd31b6fc
Parents:
ede7a69d54c25b9d0c8b81afc4a499d622183a15ed29fb4605d820ab1aafd221b2254f3a72ef4c3c
Message:
Merge pull request #306 from mmklee/switch

chg: removed switching off of switches
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/tesths.cc

    red29fb rd5bd4bc  
    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.