Ignore:
Timestamp:
Jan 28, 2011, 9:10:16 PM (13 years ago)
Author:
george
Message:
  • Fixed: WaitForEvent functionality. Now TEvent.WaitFor will chane microthread to blocked state with defined timeout. TEvent.SetSignal method will unblock all waiting microthreads.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • MicroThreading/Demo/UMainForm.lfm

    r157 r158  
    1616    Top = 8
    1717    Width = 802
    18     ActivePage = TabSheet2
     18    ActivePage = TabSheet1
    1919    Anchors = [akTop, akLeft, akRight, akBottom]
    20     TabIndex = 0
     20    TabIndex = 1
    2121    TabOrder = 0
    2222    object TabSheet2: TTabSheet
     
    133133          Height = 14
    134134          Top = 36
     135          Width = 13
     136          Caption = '    '
     137          ParentColor = False
     138        end
     139        object Label15: TLabel
     140          Left = 9
     141          Height = 14
     142          Top = 52
     143          Width = 83
     144          Caption = 'Main thread id:'
     145          ParentColor = False
     146        end
     147        object Label16: TLabel
     148          Left = 142
     149          Height = 14
     150          Top = 52
    135151          Width = 13
    136152          Caption = '    '
     
    226242        Left = 10
    227243        Height = 25
    228         Top = 74
     244        Top = 223
    229245        Width = 104
    230246        Caption = 'Clear jobs'
     
    236252        Height = 14
    237253        Top = 14
    238         Width = 34
     254        Width = 37
    239255        Caption = 'Count:'
    240256        ParentColor = False
     
    253269      object Memo1: TMemo
    254270        Left = 316
    255         Height = 244
     271        Height = 243
    256272        Top = 14
    257273        Width = 294
     
    261277      end
    262278      object Button1: TButton
    263         Left = 12
    264         Height = 25
    265         Top = 138
     279        Left = 230
     280        Height = 25
     281        Top = 239
    266282        Width = 75
    267283        Caption = 'Clear memo'
     
    273289        Height = 14
    274290        Top = 38
    275         Width = 52
     291        Width = 57
    276292        Caption = 'Iterations:'
    277293        ParentColor = False
     
    287303        Value = 10000000
    288304      end
     305      object GroupBox3: TGroupBox
     306        Left = 10
     307        Height = 137
     308        Top = 74
     309        Width = 292
     310        Caption = 'Do inside jobs'
     311        ClientHeight = 122
     312        ClientWidth = 288
     313        TabOrder = 6
     314        object CheckBox1: TCheckBox
     315          Left = 4
     316          Height = 20
     317          Top = 9
     318          Width = 76
     319          Caption = 'Use sleep'
     320          OnChange = CheckBox1Change
     321          TabOrder = 0
     322        end
     323        object SpinEdit4: TSpinEdit
     324          Left = 149
     325          Height = 21
     326          Top = 8
     327          Width = 90
     328          MaxValue = 100000
     329          TabOrder = 1
     330          Value = 100
     331        end
     332        object Label14: TLabel
     333          Left = 242
     334          Height = 14
     335          Top = 15
     336          Width = 17
     337          Caption = 'ms'
     338          ParentColor = False
     339        end
     340        object CheckBox2: TCheckBox
     341          Left = 5
     342          Height = 20
     343          Top = 32
     344          Width = 126
     345          Caption = 'Write test to memo'
     346          OnChange = CheckBox2Change
     347          TabOrder = 2
     348        end
     349        object CheckBox3: TCheckBox
     350          Left = 5
     351          Height = 20
     352          Top = 56
     353          Width = 98
     354          Caption = 'Wait for event'
     355          OnChange = CheckBox3Change
     356          TabOrder = 3
     357        end
     358        object Button3: TButton
     359          Left = 226
     360          Height = 25
     361          Top = 51
     362          Width = 51
     363          Caption = 'Signal'
     364          OnClick = Button3Click
     365          TabOrder = 4
     366        end
     367        object SpinEdit5: TSpinEdit
     368          Left = 130
     369          Height = 21
     370          Top = 51
     371          Width = 70
     372          MaxValue = 100000
     373          OnChange = CheckBox3Change
     374          TabOrder = 5
     375          Value = 100
     376        end
     377        object Label17: TLabel
     378          Left = 202
     379          Height = 14
     380          Top = 56
     381          Width = 17
     382          Caption = 'ms'
     383          ParentColor = False
     384        end
     385      end
    289386    end
    290387    object TabSheet3: TTabSheet
Note: See TracChangeset for help on using the changeset viewer.