Changeset f85b93 in git
- Timestamp:
- Mar 14, 2019, 2:27:37 PM (5 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- d4c9b0f42fb49550f32f4494efb073a56c80da5c
- Parents:
- 1d494e626d4d7d4f0cf65e3804d9b04c7e808edda6895f08280ec39a7714dbc7016f1a922a036609
- Location:
- Singular
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/systhreads.lib
r1d494e rf85b93 14 14 15 15 static proc mod_init() { 16 LIB "systhreads.so";16 load("systhreads.so"); 17 17 } 18 18 -
Singular/dyn_modules/systhreads/lintree.cc
r1d494e rf85b93 1 1 #include "threadconf.h" 2 #ifdef ENABLE_THREADS3 #include <factory/prelude.h>4 #endif5 2 #include "lintree.h" 6 3 #include <iostream> -
Singular/dyn_modules/systhreads/shared.cc
r1d494e rf85b93 1 1 #include "threadconf.h" 2 #ifdef ENABLE_THREADS3 #include <factory/prelude.h>4 #else5 #define SIMPLE_THREAD_VAR6 #endif7 2 #include <iostream> 8 3 #include "kernel/mod2.h" … … 231 226 Lock master_lock(true); 232 227 Lock name_lock(true); 233 SIMPLE_THREAD_VAR long thread_id;228 VAR long thread_id; 234 229 long thread_counter; 235 230 … … 1379 1374 master_lock.unlock(); 1380 1375 #ifdef ENABLE_THREADS 1381 onThreadInit(); 1376 extern void pSingular_initialize_thread(); 1377 pSingular_initialize_thread(); 1382 1378 siInit(global_argv0); 1383 1379 #endif … … 1630 1626 }; 1631 1627 1632 static SIMPLE_THREAD_VAR ThreadPool *currentThreadPoolRef;1633 static SIMPLE_THREAD_VAR Job *currentJobRef;1628 STATIC_VAR ThreadPool *currentThreadPoolRef; 1629 STATIC_VAR Job *currentJobRef; 1634 1630 1635 1631 class ThreadPool : public SharedObject { -
Singular/dyn_modules/systhreads/thread.cc
r1d494e rf85b93 1 1 #include "threadconf.h" 2 #ifdef ENABLE_THREADS3 #include <factory/prelude.h>4 #endif5 2 #include <list> 6 3 #include <vector> -
Singular/links/ssiLink.cc
ra6895f rf85b93 1505 1505 void *dd=data->Data(); 1506 1506 attr *aa=data->Attribute(); 1507 BOOLEAN with_attr=FALSE; 1508 if ((aa!=NULL) && ((*aa)!=NULL)) 1507 if ((aa!=NULL) && ((*aa)!=NULL)) // n user attributes 1509 1508 { 1510 1509 attr a=*aa; … … 1513 1512 fprintf(d->f_write,"21 %d %d ",data->flag,n); 1514 1513 } 1515 else if (data->flag!=0) 1514 else if (data->flag!=0) // only "flag" attributes 1516 1515 { 1517 1516 fprintf(d->f_write,"21 %d 0 ",data->flag);
Note: See TracChangeset
for help on using the changeset viewer.