00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #if !defined(sc_thread_process_h_INCLUDED)
00030 #define sc_thread_process_h_INCLUDED
00031
00032 #include "sysc/kernel/sc_spawn_options.h"
00033 #include "sysc/kernel/sc_process.h"
00034 #include "sysc/kernel/sc_cor.h"
00035 #include "sysc/kernel/sc_event.h"
00036 #include "sysc/kernel/sc_except.h"
00037 #include "sysc/kernel/sc_reset.h"
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047 #if 0
00048 # define DEBUG_NAME ""
00049 # define DEBUG_MSG(NAME,P,MSG) \
00050 { \
00051 if ( P && ( (strlen(NAME)==0) || !strcmp(NAME,P->name())) ) \
00052 std::cout << "**** " << sc_time_stamp() << " (" \
00053 << sc_get_current_process_name() << "): " << MSG \
00054 << " - " << P->name() << std::endl; \
00055 }
00056 #else
00057 # define DEBUG_MSG(NAME,P,MSG)
00058 #endif
00059
00060
00061 #ifndef _SYSC_PRINT_VERBOSE_MESSAGE_ENV_VAR
00062 #define _SYSC_PRINT_VERBOSE_MESSAGE_ENV_VAR "SYSC_PRINT_VERBOSE_MESSAGE"
00063 #endif
00064 namespace sc_core {
00065
00066
00067 class sc_event_and_list;
00068 class sc_event_or_list;
00069 class sc_reset;
00070 void sc_thread_cor_fn( void* );
00071 void sc_set_stack_size( sc_thread_handle, std::size_t );
00072 class sc_event;
00073 class sc_join;
00074 class sc_module;
00075 class sc_process_handle;
00076 class sc_process_table;
00077 class sc_simcontext;
00078 class sc_runnable;
00079
00080 sc_cor* get_cor_pointer( sc_process_b* process_p );
00081 void sc_set_stack_size( sc_thread_handle thread_h, std::size_t size );
00082 void wait( int, sc_simcontext* );
00083 void wait( const sc_event&, int, sc_simcontext* );
00084 void wait( const sc_event_or_list&, int, sc_simcontext* );
00085 void wait( const sc_event_and_list&, int, sc_simcontext* );
00086 void wait( const sc_time&, int, sc_simcontext* );
00087 void wait( const sc_time&, const sc_event&, int, sc_simcontext* );
00088 void wait( const sc_time&, const sc_event_or_list&, int, sc_simcontext* );
00089 void wait( const sc_time&, const sc_event_and_list&, int, sc_simcontext* );
00090
00091
00096 class sc_thread_process : public sc_process_b {
00097 friend void sc_thread_cor_fn( void* );
00098 friend void sc_set_stack_size( sc_thread_handle, std::size_t );
00099 friend class sc_event;
00100 friend class sc_join;
00101 friend class sc_module;
00102
00103
00104 friend class sc_channel;
00105
00106 friend class sc_process_b;
00107 friend class sc_process_handle;
00108 friend class sc_process_table;
00109 friend class sc_simcontext;
00110 friend class sc_runnable;
00111 friend sc_cor* get_cor_pointer( sc_process_b* process_p );
00112
00113
00114 friend void wait( int, sc_simcontext* );
00115 friend void wait( const sc_event&, int, sc_simcontext* );
00116 friend void wait( const sc_event_or_list&, int, sc_simcontext* );
00117 friend void wait( const sc_event_and_list&, int, sc_simcontext* );
00118 friend void wait( const sc_time&, int, sc_simcontext* );
00119 friend void wait( const sc_time&, const sc_event&, int, sc_simcontext* );
00120 friend void wait( const sc_time&, const sc_event_or_list&, int,
00121 sc_simcontext* );
00122 friend void wait( const sc_time&, const sc_event_and_list&, int,
00123 sc_simcontext*);
00124
00125 public:
00126
00127
00128
00129
00130
00131
00132 void trigger_thread_waiting_on_or_list();
00133
00134 sc_event* waiting_event;
00135 sc_timestamp first_triggerable_time;
00136 sc_thread_process( const char* name_p, bool free_host,
00137 SC_ENTRY_FUNC method_p, sc_process_host* host_p,
00138 const sc_spawn_options* opt_p );
00139
00140 virtual const char* kind() const
00141 { return "sc_thread_process"; }
00145 bool is_list_triggered();
00146 void aux_boundary();
00147 protected:
00148
00149 virtual ~sc_thread_process();
00150
00151 virtual void disable_process(
00152 sc_descendant_inclusion_info descendants = SC_NO_DESCENDANTS );
00153 virtual void enable_process(
00154 sc_descendant_inclusion_info descendants = SC_NO_DESCENDANTS );
00155 virtual void kill_process(
00156 sc_descendant_inclusion_info descendants = SC_NO_DESCENDANTS );
00157 sc_thread_handle next_exist();
00158 sc_thread_handle next_runnable();
00159 virtual void prepare_for_simulation();
00160 virtual void resume_process(
00161 sc_descendant_inclusion_info descendants = SC_NO_DESCENDANTS );
00162 void set_next_exist( sc_thread_handle next_p );
00163 void set_next_runnable( sc_thread_handle next_p );
00164
00165 void set_stack_size( std::size_t size );
00166 inline void suspend_me();
00167 virtual void suspend_process(
00168 sc_descendant_inclusion_info descendants = SC_NO_DESCENDANTS );
00169 virtual void throw_reset( bool async );
00170 virtual void throw_user( const sc_throw_it_helper& helper,
00171 sc_descendant_inclusion_info descendants = SC_NO_DESCENDANTS );
00172
00173 bool trigger_dynamic( sc_event*, bool& );
00174 bool can_be_triggered(sc_timestamp,sc_event*,int);
00179
00180
00181 inline void trigger_static( sc_event* );
00182
00183
00184
00189
00190 void wait( const sc_event&, int );
00191
00196
00197 void wait( const sc_event_or_list&, int );
00198
00203
00204 void wait( const sc_event_and_list&, int );
00205
00210
00211 void wait( const sc_time&, int );
00212
00217
00218 void wait( const sc_time&, const sc_event&, int );
00219
00224
00225 void wait( const sc_time&, const sc_event_or_list&, int );
00226
00231
00232 void wait( const sc_time&, const sc_event_and_list&, int );
00233
00238
00239 void wait_cycles( int, int n=1 );
00240
00241 protected:
00242 void add_monitor( sc_process_monitor* monitor_p );
00243 void remove_monitor( sc_process_monitor* monitor_p);
00244 void signal_monitors( int type = 0 );
00245
00246 protected:
00247 sc_cor* m_cor_p;
00248 std::vector<sc_process_monitor*> m_monitor_q;
00249 std::size_t m_stack_size;
00250 int m_wait_cycle_n;
00251
00252 private:
00253 sc_thread_process( const sc_thread_process& );
00254 const sc_thread_process& operator = ( const sc_thread_process& );
00255
00256 };
00257
00258
00259
00260
00261
00262 inline void sc_thread_process::set_stack_size( std::size_t size )
00263 {
00264 assert( size );
00265 m_stack_size = size;
00266 }
00267
00268
00269
00270
00271
00272
00273
00274
00275
00276
00277
00278
00279
00280
00281
00282
00283
00284
00285
00286
00287 inline void sc_thread_process::suspend_me()
00288 {
00289
00290 #ifdef SC_LOCK_CHECK
00291 assert( sc_get_curr_simcontext()->is_locked_and_owner() );
00292 #endif
00293
00294
00295
00296 bool unwinding_preempted = m_unwinding;
00297
00298 sc_simcontext* simc_p = simcontext();
00299
00300
00301 simc_p->remove_running_process( (sc_process_b*)this );
00302
00303
00304
00305
00306
00307
00308
00309
00310
00311 if(getenv(_SYSC_PRINT_VERBOSE_MESSAGE_ENV_VAR))
00312 printf("%s is calling suspend_me()\n",this->name());
00313 simc_p->oooschedule( m_cor_p );
00314
00315
00316
00317
00318
00319
00320
00321
00322
00323
00324
00325 if ( !simc_p->is_running_process( (sc_process_b*)this ) )
00326 {
00327 DEBUG_MSG( DEBUG_NAME , this, "suspending thread");
00328 simc_p->suspend_cor( m_cor_p );
00329 DEBUG_MSG( DEBUG_NAME , this, "resuming thread");
00330 }
00331
00332
00333
00334
00335
00336
00337
00338
00339 if ( m_throw_status == THROW_NONE ) return;
00340
00341 if ( m_unwinding ) return;
00342
00343 switch( m_throw_status )
00344 {
00345 case THROW_ASYNC_RESET:
00346 case THROW_SYNC_RESET:
00347 DEBUG_MSG( DEBUG_NAME , this, "throwing reset for");
00348 if ( m_reset_event_p ) m_reset_event_p->notify();
00349 throw sc_unwind_exception( this, true );
00350
00351 case THROW_USER:
00352 DEBUG_MSG( DEBUG_NAME, this, "invoking throw_it for");
00353 m_throw_status = m_active_areset_n ? THROW_ASYNC_RESET :
00354 (m_active_reset_n ? THROW_SYNC_RESET :
00355 THROW_NONE);
00356 m_throw_helper_p->throw_it();
00357 break;
00358
00359 case THROW_KILL:
00360 DEBUG_MSG( DEBUG_NAME, this, "throwing kill for");
00361 throw sc_unwind_exception( this, false );
00362
00363 default:
00364 sc_assert( unwinding_preempted );
00365 DEBUG_MSG( DEBUG_NAME, this, "restarting thread");
00366 break;
00367 }
00368 }
00369
00370
00371
00372
00373
00374
00375
00376
00377
00378
00379
00380
00381
00382
00383
00384
00385
00386
00387
00388
00389
00390
00391
00392
00393
00394
00395
00396
00397
00398
00399
00400
00401
00402
00403
00404
00405
00406
00407
00408
00409
00410
00411
00412
00413
00414
00415
00416
00417
00418
00419
00420
00421
00422
00423
00424
00425
00426
00427
00428
00429
00430
00431
00432
00433
00434
00435
00436
00437
00438
00439
00440
00441
00442
00443
00444
00445
00446
00447
00448
00449
00450
00451
00452
00453 inline
00454 void
00455 sc_thread_process::aux_boundary()
00456 {
00457
00458
00459
00460
00461 if( m_unwinding )
00462 SC_REPORT_ERROR( SC_ID_WAIT_DURING_UNWINDING_, name() );
00463
00464 {
00465
00466 sc_kernel_lock lock;
00467
00468 #ifdef SC_LOCK_CHECK
00469 assert( sc_get_curr_simcontext()->is_locked_and_owner() );
00470 #endif
00471
00472
00473 set_segment_id( -2 );
00474
00475 unlock_all_channels();
00476
00477
00478
00479 if(getenv(_SYSC_PRINT_VERBOSE_MESSAGE_ENV_VAR))
00480 printf("\n%s is calling wait for nothing\n",this->name());
00481
00482
00483 sc_get_curr_simcontext()->oooschedule( m_cor_p );
00484
00485 }
00486 #ifdef SC_LOCK_CHECK
00487 assert( sc_get_curr_simcontext()->is_not_owner() );
00488 #endif
00489 lock_all_channels();
00490
00491
00492
00493 }
00494
00495 inline
00496 void
00497 sc_thread_process::wait( const sc_event& e, int seg_id )
00498 {
00499
00500
00501
00502 if( m_unwinding )
00503 SC_REPORT_ERROR( SC_ID_WAIT_DURING_UNWINDING_, name() );
00504
00505 {
00506
00507 sc_kernel_lock lock;
00508
00509 #ifdef SC_LOCK_CHECK
00510 assert( sc_get_curr_simcontext()->is_locked_and_owner() );
00511 #endif
00512
00513
00514 set_segment_id( seg_id );
00515
00516 unlock_all_channels();
00517 m_event_p = &e;
00518 e.add_dynamic( this );
00519
00520
00521 m_trigger_type = EVENT;
00522
00523
00524 if(getenv(_SYSC_PRINT_VERBOSE_MESSAGE_ENV_VAR))
00525 printf("\n%s is calling wait for event %s\n",this->name(),e.name());
00526 this->m_process_state=2;
00527 sc_get_curr_simcontext()->add_to_wait_queue( (sc_process_b*)this ) ;
00528
00529
00530
00531 suspend_me();
00532
00533 }
00534 #ifdef SC_LOCK_CHECK
00535 assert( sc_get_curr_simcontext()->is_not_owner() );
00536 #endif
00537 lock_all_channels();
00538 }
00539
00540 inline
00541 void
00542 sc_thread_process::wait( const sc_event_or_list& el, int seg_id )
00543 {
00544 if( m_unwinding )
00545 SC_REPORT_ERROR( SC_ID_WAIT_DURING_UNWINDING_, name() );
00546
00547 {
00548
00549 sc_kernel_lock lock;
00550
00551 #ifdef SC_LOCK_CHECK
00552 assert( sc_get_curr_simcontext()->is_locked_and_owner() );
00553 #endif
00554
00555
00556 set_segment_id( seg_id );
00557
00558 unlock_all_channels();
00559 el.add_dynamic( this );
00560 m_event_list_p = ⪙
00561 m_event_count = el.size();
00562
00563 m_trigger_type = OR_LIST;
00564
00565
00566
00567 if(getenv(_SYSC_PRINT_VERBOSE_MESSAGE_ENV_VAR))
00568 printf("\n%s is calling wait for event list\n",this->name());
00569 this->m_process_state=2;
00570 sc_get_curr_simcontext()->add_to_wait_queue( (sc_process_b*)this ) ;
00571
00572
00573 suspend_me();
00574
00575 }
00576 #ifdef SC_LOCK_CHECK
00577 assert( sc_get_curr_simcontext()->is_not_owner() );
00578 #endif
00579 lock_all_channels();
00580 }
00581
00582 inline
00583 void
00584 sc_thread_process::wait( const sc_event_and_list& el, int seg_id )
00585 {
00586 if( m_unwinding )
00587 SC_REPORT_ERROR( SC_ID_WAIT_DURING_UNWINDING_, name() );
00588
00589 {
00590
00591 sc_kernel_lock lock;
00592
00593 #ifdef SC_LOCK_CHECK
00594 assert( sc_get_curr_simcontext()->is_locked_and_owner() );
00595 #endif
00596
00597
00598 set_segment_id( seg_id );
00599
00600 unlock_all_channels();
00601 el.add_dynamic( this );
00602 m_event_list_p = ⪙
00603 m_event_count = el.size();
00604
00605
00606 m_trigger_type = AND_LIST;
00607
00608
00609 if(getenv(_SYSC_PRINT_VERBOSE_MESSAGE_ENV_VAR))
00610 printf("\n%s is calling wait for event list\n",this->name());
00611 this->m_process_state=2;
00612 sc_get_curr_simcontext()->add_to_wait_queue( (sc_process_b*)this ) ;
00613
00614
00615 suspend_me();
00616
00617 }
00618 #ifdef SC_LOCK_CHECK
00619 assert( sc_get_curr_simcontext()->is_not_owner() );
00620 #endif
00621 lock_all_channels();
00622 }
00623
00624 inline
00625 void
00626 sc_thread_process::wait( const sc_time& t, int seg_id )
00627 {
00628
00629 if( m_unwinding )
00630 SC_REPORT_ERROR( SC_ID_WAIT_DURING_UNWINDING_, name() );
00631
00632 {
00633
00634 sc_kernel_lock lock;
00635
00636 #ifdef SC_LOCK_CHECK
00637 assert( sc_get_curr_simcontext()->is_locked_and_owner() );
00638 #endif
00639
00640
00641 set_segment_id( seg_id );
00642
00643 unlock_all_channels();
00644 m_timeout_event_p->notify_internal( t );
00645 m_timeout_event_p->add_dynamic( this );
00646
00647 if(t==SC_ZERO_TIME){
00648 this->m_process_state=3;
00649
00650 if(getenv(_SYSC_PRINT_VERBOSE_MESSAGE_ENV_VAR))
00651 printf("\n%s is calling wait for delta time\n",this->name());
00652 }
00653 else {
00654 this->m_process_state=3;
00655 if(getenv(_SYSC_PRINT_VERBOSE_MESSAGE_ENV_VAR))
00656 printf("\n%s is calling wait for time\n",this->name());
00657 }
00658 m_trigger_type = TIMEOUT;
00659
00660 suspend_me();
00661
00662 }
00663 #ifdef SC_LOCK_CHECK
00664 assert( sc_get_curr_simcontext()->is_not_owner() );
00665 #endif
00666 lock_all_channels();
00667 }
00668
00669 inline
00670 void
00671 sc_thread_process::wait( const sc_time& t, const sc_event& e, int seg_id )
00672 {
00673 if( m_unwinding )
00674 SC_REPORT_ERROR( SC_ID_WAIT_DURING_UNWINDING_, name() );
00675
00676 {
00677
00678 sc_kernel_lock lock;
00679
00680 #ifdef SC_LOCK_CHECK
00681 assert( sc_get_curr_simcontext()->is_locked_and_owner() );
00682 #endif
00683
00684
00685 set_segment_id( seg_id );
00686
00687 unlock_all_channels();
00688 m_timeout_event_p->notify_internal( t );
00689 m_timeout_event_p->add_dynamic( this );
00690 e.add_dynamic( this );
00691 m_event_p = &e;
00692 m_trigger_type = EVENT_TIMEOUT;
00693 suspend_me();
00694
00695 }
00696 #ifdef SC_LOCK_CHECK
00697 assert( sc_get_curr_simcontext()->is_not_owner() );
00698 #endif
00699 lock_all_channels();
00700 }
00701
00702 inline
00703 void
00704 sc_thread_process::wait( const sc_time& t, const sc_event_or_list& el, int seg_id )
00705 {
00706 if( m_unwinding )
00707 SC_REPORT_ERROR( SC_ID_WAIT_DURING_UNWINDING_, name() );
00708
00709 {
00710
00711 sc_kernel_lock lock;
00712
00713 #ifdef SC_LOCK_CHECK
00714 assert( sc_get_curr_simcontext()->is_locked_and_owner() );
00715 #endif
00716
00717
00718 set_segment_id( seg_id );
00719
00720 unlock_all_channels();
00721 m_timeout_event_p->notify_internal( t );
00722 m_timeout_event_p->add_dynamic( this );
00723 el.add_dynamic( this );
00724 m_event_list_p = ⪙
00725 m_trigger_type = OR_LIST_TIMEOUT;
00726 suspend_me();
00727
00728 }
00729 #ifdef SC_LOCK_CHECK
00730 assert( sc_get_curr_simcontext()->is_not_owner() );
00731 #endif
00732 lock_all_channels();
00733 }
00734
00735 inline
00736 void
00737 sc_thread_process::wait( const sc_time& t, const sc_event_and_list& el, int seg_id )
00738 {
00739 if( m_unwinding )
00740 SC_REPORT_ERROR( SC_ID_WAIT_DURING_UNWINDING_, name() );
00741
00742 {
00743
00744 sc_kernel_lock lock;
00745
00746 #ifdef SC_LOCK_CHECK
00747 assert( sc_get_curr_simcontext()->is_locked_and_owner() );
00748 #endif
00749
00750
00751 set_segment_id( seg_id );
00752
00753 unlock_all_channels();
00754 m_timeout_event_p->notify_internal( t );
00755 m_timeout_event_p->add_dynamic( this );
00756 el.add_dynamic( this );
00757 m_event_list_p = ⪙
00758 m_event_count = el.size();
00759 m_trigger_type = AND_LIST_TIMEOUT;
00760 suspend_me();
00761
00762 }
00763 #ifdef SC_LOCK_CHECK
00764 assert( sc_get_curr_simcontext()->is_not_owner() );
00765 #endif
00766 lock_all_channels();
00767 }
00768
00769
00770
00771
00772
00773
00774
00775
00776
00777
00778 inline
00779 void
00780 sc_thread_process::wait_cycles( int seg_id, int n )
00781 {
00782 if( m_unwinding )
00783 SC_REPORT_ERROR( SC_ID_WAIT_DURING_UNWINDING_, name() );
00784
00785 {
00786
00787 sc_kernel_lock lock;
00788
00789 #ifdef SC_LOCK_CHECK
00790 assert( sc_get_curr_simcontext()->is_locked_and_owner() );
00791 #endif
00792
00793
00794 set_segment_id( seg_id );
00795
00796 unlock_all_channels();
00797 m_wait_cycle_n = n-1;
00798 suspend_me();
00799
00800 }
00801 #ifdef SC_LOCK_CHECK
00802 assert( sc_get_curr_simcontext()->is_not_owner() );
00803 #endif
00804 lock_all_channels();
00805 }
00806
00807
00808
00809
00810
00811 inline
00812 void sc_thread_process::add_monitor(sc_process_monitor* monitor_p)
00813 {
00814 m_monitor_q.push_back(monitor_p);
00815 }
00816
00817
00818 inline
00819 void sc_thread_process::remove_monitor(sc_process_monitor* monitor_p)
00820 {
00821 int mon_n = m_monitor_q.size();
00822
00823 for ( int mon_i = 0; mon_i < mon_n; mon_i++ )
00824 {
00825 if ( m_monitor_q[mon_i] == monitor_p )
00826 {
00827 m_monitor_q[mon_i] = m_monitor_q[mon_n-1];
00828 m_monitor_q.resize(mon_n-1);
00829 }
00830 }
00831 }
00832
00833 inline
00834 void sc_thread_process::set_next_exist(sc_thread_handle next_p)
00835 {
00836 m_exist_p = next_p;
00837 }
00838
00839 inline
00840 sc_thread_handle sc_thread_process::next_exist()
00841 {
00842 return (sc_thread_handle)m_exist_p;
00843 }
00844
00845 inline
00846 void sc_thread_process::set_next_runnable(sc_thread_handle next_p)
00847 {
00848 m_runnable_p = next_p;
00849 }
00850
00851 inline
00852 sc_thread_handle sc_thread_process::next_runnable()
00853 {
00854 return (sc_thread_handle)m_runnable_p;
00855 }
00856
00857
00858
00859
00860
00861
00862
00863
00864
00865
00866
00867
00868
00869
00870
00871
00872
00873 inline
00874 void
00875
00876
00877 sc_thread_process::trigger_static( sc_event* e )
00878 {
00879
00880
00881
00882
00883
00884
00885
00886
00887
00888
00889
00890
00891
00892 if ( (m_state & ps_bit_disabled) || is_runnable() ||
00893 m_trigger_type != STATIC )
00894 return;
00895
00896 #if ! defined( SC_ENABLE_IMMEDIATE_SELF_NOTIFICATIONS )
00897 if( SC_UNLIKELY_( sc_get_current_process_b() == this ) )
00898 {
00899 report_immediate_self_notification();
00900 return;
00901 }
00902 #endif // SC_ENABLE_IMMEDIATE_SELF_NOTIFICATIONS
00903
00904 if ( m_wait_cycle_n > 0 )
00905 {
00906 --m_wait_cycle_n;
00907 return;
00908 }
00909
00910
00911
00912
00913
00914 if ( m_state & ps_bit_suspended )
00915 {
00916 m_state = m_state | ps_bit_ready_to_run;
00917 }
00918 else
00919 {
00920
00921 sc_time curr_time = m_timestamp.get_time_count();
00922
00923
00924 sc_timestamp ts = e->get_notify_timestamp();
00925 switch( e->m_notify_type )
00926 {
00927 case sc_event::DELTA:
00928 if ( ts > m_timestamp ) {
00929 set_timestamp( sc_timestamp( ts.get_time_count(),
00930 ts.get_delta_count() + 1 ) );
00931 } else {
00932 set_timestamp( sc_timestamp( m_timestamp.get_time_count(),
00933 m_timestamp.get_delta_count()
00934 + 1 ) );
00935 }
00936 break;
00937 case sc_event::TIMED:
00938 set_timestamp( ts );
00939 break;
00940 case sc_event::NONE:
00941 assert( 0 );
00942 }
00943
00944 simcontext()->push_runnable_thread(this);
00945
00946
00947 simcontext()->update_oldest_time( curr_time );
00948 }
00949 }
00950
00951 #undef DEBUG_MSG
00952 #undef DEBUG_NAME
00953
00954 }
00955
00956
00957
00958
00959
00960
00961
00962
00963
00964
00965
00966
00967
00968
00969
00970
00971
00972
00973
00974
00975
00976
00977
00978
00979
00980
00981
00982
00983
00984
00985
00986
00987
00988
00989
00990
00991
00992
00993
00994
00995
00996
00997
00998
00999
01000
01001
01002
01003
01004
01005
01006
01007
01008
01009
01010
01011
01012
01013
01014
01015
01016
01017
01018
01019
01020
01021
01022
01023
01024
01025
01026
01027
01028
01029
01030
01031
01032
01033
01034
01035
01036
01037
01038
01039
01040
01041
01042
01043
01044
01045
01046
01047
01048
01049
01050
01051
01052
01053
01054
01055
01056
01057
01058
01059
01060
01061
01062
01063
01064
01065
01066
01067
01068
01069
01070
01071
01072
01073
01074
01075
01076
01077
01078
01079
01080
01081
01082
01083
01084
01085 #endif // !defined(sc_thread_process_h_INCLUDED)