Changeset f85b93 in git


Ignore:
Timestamp:
Mar 14, 2019, 2:27:37 PM (5 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
d4c9b0f42fb49550f32f4494efb073a56c80da5c
Parents:
1d494e626d4d7d4f0cf65e3804d9b04c7e808edda6895f08280ec39a7714dbc7016f1a922a036609
Message:
Merge branch 'spielwiese' of github.com:Singular/Sources into spielwiese
Location:
Singular
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/systhreads.lib

    r1d494e rf85b93  
    1414
    1515static proc mod_init() {
    16   LIB "systhreads.so";
     16  load("systhreads.so");
    1717}
    1818
  • Singular/dyn_modules/systhreads/lintree.cc

    r1d494e rf85b93  
    11#include "threadconf.h"
    2 #ifdef ENABLE_THREADS
    3 #include <factory/prelude.h>
    4 #endif
    52#include "lintree.h"
    63#include <iostream>
  • Singular/dyn_modules/systhreads/shared.cc

    r1d494e rf85b93  
    11#include "threadconf.h"
    2 #ifdef ENABLE_THREADS
    3 #include <factory/prelude.h>
    4 #else
    5 #define SIMPLE_THREAD_VAR
    6 #endif
    72#include <iostream>
    83#include "kernel/mod2.h"
     
    231226Lock master_lock(true);
    232227Lock name_lock(true);
    233 SIMPLE_THREAD_VAR long thread_id;
     228VAR long thread_id;
    234229long thread_counter;
    235230
     
    13791374  master_lock.unlock();
    13801375#ifdef ENABLE_THREADS
    1381   onThreadInit();
     1376  extern void pSingular_initialize_thread();
     1377  pSingular_initialize_thread();
    13821378  siInit(global_argv0);
    13831379#endif
     
    16301626};
    16311627
    1632 static SIMPLE_THREAD_VAR ThreadPool *currentThreadPoolRef;
    1633 static SIMPLE_THREAD_VAR Job *currentJobRef;
     1628STATIC_VAR ThreadPool *currentThreadPoolRef;
     1629STATIC_VAR Job *currentJobRef;
    16341630
    16351631class ThreadPool : public SharedObject {
  • Singular/dyn_modules/systhreads/thread.cc

    r1d494e rf85b93  
    11#include "threadconf.h"
    2 #ifdef ENABLE_THREADS
    3 #include <factory/prelude.h>
    4 #endif
    52#include <list>
    63#include <vector>
  • Singular/links/ssiLink.cc

    ra6895f rf85b93  
    15051505    void *dd=data->Data();
    15061506    attr *aa=data->Attribute();
    1507     BOOLEAN with_attr=FALSE;
    1508     if ((aa!=NULL) && ((*aa)!=NULL))
     1507    if ((aa!=NULL) && ((*aa)!=NULL)) // n user attributes
    15091508    {
    15101509      attr a=*aa;
     
    15131512      fprintf(d->f_write,"21 %d %d ",data->flag,n);
    15141513    }
    1515     else if (data->flag!=0)
     1514    else if (data->flag!=0) // only "flag" attributes
    15161515    {
    15171516      fprintf(d->f_write,"21 %d 0 ",data->flag);
Note: See TracChangeset for help on using the changeset viewer.