Changeset c1ce47 in git
- Timestamp:
- Mar 14, 2019, 12:29:08 PM (5 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- a6895f08280ec39a7714dbc7016f1a922a036609
- Parents:
- f0f000331ee031d3c29e77fd60b33f3dc7132e0b
- Location:
- Singular
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/systhreads.lib
rf0f0003 rc1ce47 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
rf0f0003 rc1ce47 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
rf0f0003 rc1ce47 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
rf0f0003 rc1ce47 1 1 #include "threadconf.h" 2 #ifdef ENABLE_THREADS3 #include <factory/prelude.h>4 #endif5 2 #include <list> 6 3 #include <vector>
Note: See TracChangeset
for help on using the changeset viewer.