Changeset 144 for MicroThreading/Demo
- Timestamp:
- Jan 25, 2011, 2:16:25 PM (14 years ago)
- Location:
- MicroThreading/Demo
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
MicroThreading/Demo/Demo.lpi
r143 r144 42 42 </Item3> 43 43 </RequiredPackages> 44 <Units Count=" 39">44 <Units Count="44"> 45 45 <Unit0> 46 46 <Filename Value="Demo.lpr"/> … … 50 50 <TopLine Value="1"/> 51 51 <CursorPos X="1" Y="15"/> 52 <UsageCount Value="4 0"/>52 <UsageCount Value="46"/> 53 53 </Unit0> 54 54 <Unit1> … … 60 60 <EditorIndex Value="0"/> 61 61 <WindowIndex Value="0"/> 62 <TopLine Value="1 47"/>63 <CursorPos X="2 9" Y="148"/>64 <UsageCount Value="4 0"/>62 <TopLine Value="182"/> 63 <CursorPos X="28" Y="184"/> 64 <UsageCount Value="46"/> 65 65 <Loaded Value="True"/> 66 66 <LoadedDesigner Value="True"/> … … 70 70 <UnitName Value="UMicroThreading"/> 71 71 <IsVisibleTab Value="True"/> 72 <EditorIndex Value=" 3"/>73 <WindowIndex Value="0"/> 74 <TopLine Value=" 128"/>75 <CursorPos X=" 36" Y="144"/>76 <UsageCount Value="2 1"/>72 <EditorIndex Value="6"/> 73 <WindowIndex Value="0"/> 74 <TopLine Value="337"/> 75 <CursorPos X="17" Y="350"/> 76 <UsageCount Value="25"/> 77 77 <Loaded Value="True"/> 78 78 </Unit2> … … 83 83 <TopLine Value="1310"/> 84 84 <CursorPos X="15" Y="1327"/> 85 <UsageCount Value=" 9"/>85 <UsageCount Value="8"/> 86 86 </Unit3> 87 87 <Unit4> … … 90 90 <TopLine Value="346"/> 91 91 <CursorPos X="24" Y="351"/> 92 <UsageCount Value=" 9"/>92 <UsageCount Value="8"/> 93 93 </Unit4> 94 94 <Unit5> … … 97 97 <TopLine Value="1"/> 98 98 <CursorPos X="1" Y="1"/> 99 <UsageCount Value=" 9"/>99 <UsageCount Value="8"/> 100 100 <DefaultSyntaxHighlighter Value="XML"/> 101 101 </Unit5> … … 106 106 <TopLine Value="286"/> 107 107 <CursorPos X="1" Y="1"/> 108 <UsageCount Value=" 9"/>108 <UsageCount Value="8"/> 109 109 </Unit6> 110 110 <Unit7> … … 114 114 <TopLine Value="8"/> 115 115 <CursorPos X="1" Y="1"/> 116 <UsageCount Value=" 9"/>116 <UsageCount Value="8"/> 117 117 <DefaultSyntaxHighlighter Value="Delphi"/> 118 118 </Unit7> … … 123 123 <TopLine Value="56"/> 124 124 <CursorPos X="24" Y="77"/> 125 <UsageCount Value=" 20"/>125 <UsageCount Value="19"/> 126 126 <DefaultSyntaxHighlighter Value="Delphi"/> 127 127 </Unit8> … … 132 132 <TopLine Value="264"/> 133 133 <CursorPos X="37" Y="141"/> 134 <UsageCount Value=" 20"/>134 <UsageCount Value="19"/> 135 135 <DefaultSyntaxHighlighter Value="Delphi"/> 136 136 </Unit9> … … 141 141 <TopLine Value="302"/> 142 142 <CursorPos X="5" Y="33"/> 143 <UsageCount Value=" 9"/>143 <UsageCount Value="8"/> 144 144 </Unit10> 145 145 <Unit11> … … 148 148 <TopLine Value="886"/> 149 149 <CursorPos X="20" Y="900"/> 150 <UsageCount Value=" 9"/>150 <UsageCount Value="8"/> 151 151 </Unit11> 152 152 <Unit12> … … 155 155 <TopLine Value="1046"/> 156 156 <CursorPos X="34" Y="1053"/> 157 <UsageCount Value="1 8"/>157 <UsageCount Value="17"/> 158 158 </Unit12> 159 159 <Unit13> … … 162 162 <TopLine Value="156"/> 163 163 <CursorPos X="21" Y="175"/> 164 <UsageCount Value=" 9"/>164 <UsageCount Value="8"/> 165 165 </Unit13> 166 166 <Unit14> … … 169 169 <TopLine Value="45"/> 170 170 <CursorPos X="17" Y="62"/> 171 <UsageCount Value=" 9"/>171 <UsageCount Value="8"/> 172 172 </Unit14> 173 173 <Unit15> … … 176 176 <TopLine Value="2271"/> 177 177 <CursorPos X="4" Y="2274"/> 178 <UsageCount Value="1 2"/>178 <UsageCount Value="11"/> 179 179 </Unit15> 180 180 <Unit16> … … 184 184 <TopLine Value="290"/> 185 185 <CursorPos X="36" Y="306"/> 186 <UsageCount Value="2 1"/>186 <UsageCount Value="20"/> 187 187 </Unit16> 188 188 <Unit17> … … 191 191 <TopLine Value="67"/> 192 192 <CursorPos X="10" Y="91"/> 193 <UsageCount Value=" 9"/>193 <UsageCount Value="8"/> 194 194 </Unit17> 195 195 <Unit18> … … 198 198 <TopLine Value="1368"/> 199 199 <CursorPos X="3" Y="1385"/> 200 <UsageCount Value="1 1"/>200 <UsageCount Value="10"/> 201 201 </Unit18> 202 202 <Unit19> … … 205 205 <TopLine Value="861"/> 206 206 <CursorPos X="1" Y="878"/> 207 <UsageCount Value=" 10"/>207 <UsageCount Value="9"/> 208 208 </Unit19> 209 209 <Unit20> … … 212 212 <TopLine Value="32"/> 213 213 <CursorPos X="48" Y="50"/> 214 <UsageCount Value=" 10"/>214 <UsageCount Value="9"/> 215 215 </Unit20> 216 216 <Unit21> … … 219 219 <TopLine Value="8"/> 220 220 <CursorPos X="11" Y="25"/> 221 <UsageCount Value="1 2"/>221 <UsageCount Value="11"/> 222 222 </Unit21> 223 223 <Unit22> … … 227 227 <TopLine Value="1"/> 228 228 <CursorPos X="25" Y="9"/> 229 <UsageCount Value="1 3"/>229 <UsageCount Value="12"/> 230 230 </Unit22> 231 231 <Unit23> 232 232 <Filename Value="../../../../Programy/Lazarus/0.9.31_2.4.3/fpc/2.4.3/source/rtl/objpas/dateutil.inc"/> 233 <EditorIndex Value="1"/>234 233 <WindowIndex Value="0"/> 235 234 <TopLine Value="38"/> 236 235 <CursorPos X="29" Y="50"/> 237 <UsageCount Value="13"/> 238 <Loaded Value="True"/> 236 <UsageCount Value="16"/> 239 237 </Unit23> 240 238 <Unit24> 241 239 <Filename Value="../../../../Programy/Lazarus/0.9.31_2.4.3/fpc/2.4.3/source/rtl/objpas/sysutils/datih.inc"/> 242 <EditorIndex Value="2"/>243 240 <WindowIndex Value="0"/> 244 241 <TopLine Value="161"/> 245 242 <CursorPos X="11" Y="184"/> 246 <UsageCount Value="13"/> 247 <Loaded Value="True"/> 243 <UsageCount Value="16"/> 248 244 </Unit24> 249 245 <Unit25> … … 252 248 <TopLine Value="254"/> 253 249 <CursorPos X="12" Y="258"/> 254 <UsageCount Value="1 3"/>250 <UsageCount Value="12"/> 255 251 </Unit25> 256 252 <Unit26> … … 260 256 <TopLine Value="581"/> 261 257 <CursorPos X="11" Y="585"/> 262 <UsageCount Value="1 3"/>258 <UsageCount Value="12"/> 263 259 </Unit26> 264 260 <Unit27> … … 267 263 <TopLine Value="525"/> 268 264 <CursorPos X="11" Y="538"/> 269 <UsageCount Value="1 3"/>265 <UsageCount Value="12"/> 270 266 </Unit27> 271 267 <Unit28> 272 268 <Filename Value="../../../../Programy/Lazarus/0.9.31_2.4.3/fpc/2.4.3/source/packages/fcl-base/src/syncobjs.pp"/> 273 269 <UnitName Value="syncobjs"/> 274 <EditorIndex Value="11"/>275 270 <WindowIndex Value="0"/> 276 271 <TopLine Value="57"/> 277 272 <CursorPos X="16" Y="70"/> 278 <UsageCount Value="10"/> 279 <Loaded Value="True"/> 273 <UsageCount Value="13"/> 280 274 </Unit28> 281 275 <Unit29> 282 276 <Filename Value="../../../../Programy/Lazarus/0.9.31_2.4.3/fpc/2.4.3/source/rtl/inc/threadh.inc"/> 283 <EditorIndex Value="12"/>284 277 <WindowIndex Value="0"/> 285 278 <TopLine Value="18"/> 286 279 <CursorPos X="50" Y="31"/> 287 <UsageCount Value="10"/> 288 <Loaded Value="True"/> 280 <UsageCount Value="13"/> 289 281 </Unit29> 290 282 <Unit30> 291 283 <Filename Value="../../../../Programy/Lazarus/0.9.31_2.4.3/fpc/2.4.3/source/rtl/inc/thread.inc"/> 292 <EditorIndex Value="14"/>293 284 <WindowIndex Value="0"/> 294 285 <TopLine Value="109"/> 295 286 <CursorPos X="3" Y="112"/> 296 <UsageCount Value="10"/> 297 <Loaded Value="True"/> 287 <UsageCount Value="13"/> 298 288 </Unit30> 299 289 <Unit31> 300 290 <Filename Value="../../../../Programy/Lazarus/0.9.31_2.4.3/fpc/2.4.3/source/rtl/win/sysosh.inc"/> 301 <EditorIndex Value=" 13"/>291 <EditorIndex Value="3"/> 302 292 <WindowIndex Value="0"/> 303 293 <TopLine Value="12"/> 304 294 <CursorPos X="3" Y="25"/> 305 <UsageCount Value="1 0"/>295 <UsageCount Value="13"/> 306 296 <Loaded Value="True"/> 307 297 </Unit31> 308 298 <Unit32> 309 299 <Filename Value="../../../../Programy/Lazarus/0.9.31_2.4.3/fpc/2.4.3/source/rtl/objpas/classes/classesh.inc"/> 310 <EditorIndex Value="6"/>311 300 <WindowIndex Value="0"/> 312 301 <TopLine Value="1507"/> 313 302 <CursorPos X="3" Y="1469"/> 314 <UsageCount Value="10"/> 315 <Loaded Value="True"/> 303 <UsageCount Value="13"/> 316 304 </Unit32> 317 305 <Unit33> 318 306 <Filename Value="../../../../Programy/Lazarus/0.9.31_2.4.3/fpc/2.4.3/source/rtl/win/tthread.inc"/> 319 <EditorIndex Value="8"/>320 307 <WindowIndex Value="0"/> 321 308 <TopLine Value="96"/> 322 309 <CursorPos X="15" Y="98"/> 323 <UsageCount Value="10"/> 324 <Loaded Value="True"/> 310 <UsageCount Value="13"/> 325 311 </Unit33> 326 312 <Unit34> 327 313 <Filename Value="../../../../Programy/Lazarus/0.9.31_2.4.3/fpc/2.4.3/source/rtl/win/wininc/func.inc"/> 328 <EditorIndex Value="10"/>329 314 <WindowIndex Value="0"/> 330 315 <TopLine Value="130"/> 331 316 <CursorPos X="10" Y="143"/> 332 <UsageCount Value="10"/> 333 <Loaded Value="True"/> 317 <UsageCount Value="13"/> 334 318 </Unit34> 335 319 <Unit35> 336 320 <Filename Value="../../../../Programy/Lazarus/0.9.31_2.4.3/fpc/2.4.3/source/rtl/win/wininc/defines.inc"/> 337 <EditorIndex Value="9"/>338 321 <WindowIndex Value="0"/> 339 322 <TopLine Value="1923"/> 340 323 <CursorPos X="6" Y="1936"/> 341 <UsageCount Value="10"/> 342 <Loaded Value="True"/> 324 <UsageCount Value="13"/> 343 325 </Unit35> 344 326 <Unit36> 345 327 <Filename Value="../../../../Programy/Lazarus/0.9.31_2.4.3/fpc/2.4.3/source/rtl/objpas/classes/classes.inc"/> 346 <EditorIndex Value="7"/>347 328 <WindowIndex Value="0"/> 348 329 <TopLine Value="109"/> 349 330 <CursorPos X="6" Y="115"/> 350 <UsageCount Value="10"/> 351 <Loaded Value="True"/> 331 <UsageCount Value="13"/> 352 332 </Unit36> 353 333 <Unit37> 354 334 <Filename Value="../../../../Programy/Lazarus/0.9.31_2.4.3/fpc/2.4.3/source/rtl/inc/objpash.inc"/> 355 <EditorIndex Value="5"/>356 335 <WindowIndex Value="0"/> 357 336 <TopLine Value="181"/> 358 337 <CursorPos X="21" Y="194"/> 359 <UsageCount Value="10"/> 360 <Loaded Value="True"/> 338 <UsageCount Value="13"/> 361 339 </Unit37> 362 340 <Unit38> 363 341 <Filename Value="../../../../Programy/Lazarus/0.9.31_2.4.3/fpc/2.4.3/source/rtl/objpas/sysutils/osutilsh.inc"/> 364 <EditorIndex Value="4"/>365 342 <WindowIndex Value="0"/> 366 343 <TopLine Value="14"/> 367 344 <CursorPos X="11" Y="27"/> 345 <UsageCount Value="13"/> 346 </Unit38> 347 <Unit39> 348 <Filename Value="../../../../Programy/Lazarus/0.9.31_2.4.3/lcl/include/control.inc"/> 349 <WindowIndex Value="0"/> 350 <TopLine Value="2275"/> 351 <CursorPos X="39" Y="2285"/> 352 <UsageCount Value="12"/> 353 </Unit39> 354 <Unit40> 355 <Filename Value="../../../../Programy/Lazarus/0.9.31_2.4.3/fpc/2.4.3/source/rtl/inc/systemh.inc"/> 356 <EditorIndex Value="1"/> 357 <WindowIndex Value="0"/> 358 <TopLine Value="492"/> 359 <CursorPos X="3" Y="504"/> 368 360 <UsageCount Value="10"/> 369 361 <Loaded Value="True"/> 370 </Unit38> 362 </Unit40> 363 <Unit41> 364 <Filename Value="../../../../Programy/Lazarus/0.9.31_2.4.3/fpc/2.4.3/source/rtl/win/syswin.inc"/> 365 <EditorIndex Value="5"/> 366 <WindowIndex Value="0"/> 367 <TopLine Value="197"/> 368 <CursorPos X="30" Y="208"/> 369 <UsageCount Value="10"/> 370 <Loaded Value="True"/> 371 </Unit41> 372 <Unit42> 373 <Filename Value="../../../../Programy/Lazarus/0.9.31_2.4.3/fpc/2.4.3/source/rtl/inc/system.inc"/> 374 <EditorIndex Value="4"/> 375 <WindowIndex Value="0"/> 376 <TopLine Value="737"/> 377 <CursorPos X="21" Y="747"/> 378 <UsageCount Value="10"/> 379 <Loaded Value="True"/> 380 </Unit42> 381 <Unit43> 382 <Filename Value="../../../../Programy/Lazarus/0.9.31_2.4.3/fpc/2.4.3/source/rtl/inc/innr.inc"/> 383 <EditorIndex Value="2"/> 384 <WindowIndex Value="0"/> 385 <TopLine Value="96"/> 386 <CursorPos X="1" Y="1"/> 387 <UsageCount Value="10"/> 388 <Loaded Value="True"/> 389 </Unit43> 371 390 </Units> 372 <JumpHistory Count="30" HistoryIndex="2 8">391 <JumpHistory Count="30" HistoryIndex="29"> 373 392 <Position1> 374 393 <Filename Value="../UMicroThreading.pas"/> 375 <Caret Line=" 189" Column="1" TopLine="180"/>394 <Caret Line="322" Column="1" TopLine="315"/> 376 395 </Position1> 377 396 <Position2> 378 397 <Filename Value="../UMicroThreading.pas"/> 379 <Caret Line=" 190" Column="1" TopLine="180"/>398 <Caret Line="328" Column="1" TopLine="315"/> 380 399 </Position2> 381 400 <Position3> 382 401 <Filename Value="../UMicroThreading.pas"/> 383 <Caret Line=" 185" Column="1" TopLine="180"/>402 <Caret Line="363" Column="3" TopLine="350"/> 384 403 </Position3> 385 404 <Position4> 386 405 <Filename Value="../UMicroThreading.pas"/> 387 <Caret Line=" 186" Column="1" TopLine="180"/>406 <Caret Line="322" Column="1" TopLine="309"/> 388 407 </Position4> 389 408 <Position5> 390 409 <Filename Value="../UMicroThreading.pas"/> 391 <Caret Line=" 191" Column="1" TopLine="180"/>410 <Caret Line="326" Column="20" TopLine="309"/> 392 411 </Position5> 393 412 <Position6> 394 413 <Filename Value="../UMicroThreading.pas"/> 395 <Caret Line="1 49" Column="1" TopLine="136"/>414 <Caret Line="169" Column="1" TopLine="156"/> 396 415 </Position6> 397 416 <Position7> 398 417 <Filename Value="../UMicroThreading.pas"/> 399 <Caret Line=" 189" Column="1" TopLine="176"/>418 <Caret Line="363" Column="1" TopLine="350"/> 400 419 </Position7> 401 420 <Position8> 402 421 <Filename Value="../UMicroThreading.pas"/> 403 <Caret Line=" 190" Column="1" TopLine="176"/>422 <Caret Line="322" Column="1" TopLine="309"/> 404 423 </Position8> 405 424 <Position9> 406 425 <Filename Value="../UMicroThreading.pas"/> 407 <Caret Line=" 185" Column="1" TopLine="176"/>426 <Caret Line="330" Column="1" TopLine="309"/> 408 427 </Position9> 409 428 <Position10> 410 429 <Filename Value="../UMicroThreading.pas"/> 411 <Caret Line=" 186" Column="1" TopLine="176"/>430 <Caret Line="316" Column="1" TopLine="309"/> 412 431 </Position10> 413 432 <Position11> 414 433 <Filename Value="../UMicroThreading.pas"/> 415 <Caret Line="1 91" Column="1" TopLine="176"/>434 <Caret Line="169" Column="1" TopLine="156"/> 416 435 </Position11> 417 436 <Position12> 418 437 <Filename Value="../UMicroThreading.pas"/> 419 <Caret Line=" 149" Column="1" TopLine="136"/>438 <Caret Line="316" Column="1" TopLine="303"/> 420 439 </Position12> 421 440 <Position13> 422 441 <Filename Value="../UMicroThreading.pas"/> 423 <Caret Line=" 156" Column="1" TopLine="136"/>442 <Caret Line="330" Column="16" TopLine="317"/> 424 443 </Position13> 425 444 <Position14> 426 445 <Filename Value="../UMicroThreading.pas"/> 427 <Caret Line=" 157" Column="1" TopLine="136"/>446 <Caret Line="363" Column="1" TopLine="350"/> 428 447 </Position14> 429 448 <Position15> 430 <Filename Value=" ../UMicroThreading.pas"/>431 <Caret Line=" 158" Column="1" TopLine="136"/>449 <Filename Value="UMainForm.pas"/> 450 <Caret Line="228" Column="1" TopLine="208"/> 432 451 </Position15> 433 452 <Position16> 434 <Filename Value=" ../UMicroThreading.pas"/>435 <Caret Line=" 189" Column="1" TopLine="176"/>453 <Filename Value="UMainForm.pas"/> 454 <Caret Line="235" Column="1" TopLine="215"/> 436 455 </Position16> 437 456 <Position17> 438 <Filename Value=" ../UMicroThreading.pas"/>439 <Caret Line="1 90" Column="1" TopLine="176"/>457 <Filename Value="UMainForm.pas"/> 458 <Caret Line="184" Column="28" TopLine="182"/> 440 459 </Position17> 441 460 <Position18> 442 <Filename Value="../ UMicroThreading.pas"/>443 <Caret Line=" 409" Column="21" TopLine="387"/>461 <Filename Value="../../../../Programy/Lazarus/0.9.31_2.4.3/fpc/2.4.3/source/rtl/inc/system.inc"/> 462 <Caret Line="660" Column="22" TopLine="656"/> 444 463 </Position18> 445 464 <Position19> 446 465 <Filename Value="../UMicroThreading.pas"/> 447 <Caret Line=" 206" Column="18" TopLine="201"/>466 <Caret Line="527" Column="78" TopLine="504"/> 448 467 </Position19> 449 468 <Position20> 450 469 <Filename Value="../UMicroThreading.pas"/> 451 <Caret Line=" 21" Column="15" TopLine="7"/>470 <Caret Line="531" Column="51" TopLine="513"/> 452 471 </Position20> 453 472 <Position21> 454 <Filename Value="../ UMicroThreading.pas"/>455 <Caret Line=" 123" Column="50" TopLine="110"/>473 <Filename Value="../../../../Programy/Lazarus/0.9.31_2.4.3/fpc/2.4.3/source/rtl/win/syswin.inc"/> 474 <Caret Line="208" Column="27" TopLine="194"/> 456 475 </Position21> 457 476 <Position22> 458 477 <Filename Value="../UMicroThreading.pas"/> 459 <Caret Line=" 165" Column="29" TopLine="145"/>478 <Caret Line="531" Column="46" TopLine="522"/> 460 479 </Position22> 461 480 <Position23> 462 481 <Filename Value="../UMicroThreading.pas"/> 463 <Caret Line="1 48" Column="31" TopLine="135"/>482 <Caret Line="161" Column="27" TopLine="158"/> 464 483 </Position23> 465 484 <Position24> 466 485 <Filename Value="../UMicroThreading.pas"/> 467 <Caret Line="1 65" Column="26" TopLine="152"/>486 <Caret Line="195" Column="43" TopLine="180"/> 468 487 </Position24> 469 488 <Position25> 470 489 <Filename Value="../UMicroThreading.pas"/> 471 <Caret Line=" 148" Column="31" TopLine="148"/>490 <Caret Line="211" Column="43" TopLine="198"/> 472 491 </Position25> 473 492 <Position26> 474 493 <Filename Value="../UMicroThreading.pas"/> 475 <Caret Line=" 150" Column="31" TopLine="135"/>494 <Caret Line="241" Column="45" TopLine="226"/> 476 495 </Position26> 477 496 <Position27> 478 497 <Filename Value="../UMicroThreading.pas"/> 479 <Caret Line=" 80" Column="33" TopLine="68"/>498 <Caret Line="542" Column="1" TopLine="524"/> 480 499 </Position27> 481 500 <Position28> 482 501 <Filename Value="../UMicroThreading.pas"/> 483 <Caret Line=" 143" Column="12" TopLine="136"/>502 <Caret Line="538" Column="39" TopLine="525"/> 484 503 </Position28> 485 504 <Position29> 486 505 <Filename Value="../UMicroThreading.pas"/> 487 <Caret Line="1 44" Column="36" TopLine="128"/>506 <Caret Line="181" Column="1" TopLine="155"/> 488 507 </Position29> 489 508 <Position30> 490 <Filename Value="../ ../../../Programy/Lazarus/0.9.31_2.4.3/fpc/2.4.3/source/rtl/objpas/sysutils/osutilsh.inc"/>491 <Caret Line=" 27" Column="11" TopLine="14"/>509 <Filename Value="../UMicroThreading.pas"/> 510 <Caret Line="350" Column="22" TopLine="337"/> 492 511 </Position30> 493 512 </JumpHistory> … … 525 544 <Item3> 526 545 <Source Value="umainform.pas"/> 527 <Line Value=" 58"/>546 <Line Value="62"/> 528 547 </Item3> 529 548 <Item4> -
MicroThreading/Demo/UMainForm.lfm
r142 r144 1 1 object Form1: TForm1 2 Left = 2982 Left = 300 3 3 Height = 510 4 Top = 1 444 Top = 137 5 5 Width = 703 6 6 Caption = 'MicroThreading demo' … … 98 98 end 99 99 object Button4: TButton 100 Left = 1 36100 Left = 120 101 101 Height = 25 102 102 Top = 12 103 Width = 75103 Width = 88 104 104 Caption = 'Start workers' 105 105 OnClick = Button4Click … … 116 116 Value = 20 117 117 end 118 object Button5: TButton 119 Left = 168 120 Height = 25 121 Top = 48 122 Width = 131 123 Caption = 'Get max TThread count' 124 OnClick = Button5Click 125 TabOrder = 7 126 end 127 object Button6: TButton 128 Left = 88 129 Height = 25 130 Top = 48 131 Width = 75 132 Caption = 'Button6' 133 OnClick = Button6Click 134 TabOrder = 8 135 end 118 136 object Timer1: TTimer 119 137 Interval = 100 -
MicroThreading/Demo/UMainForm.pas
r142 r144 24 24 Button3: TButton; 25 25 Button4: TButton; 26 Button5: TButton; 27 Button6: TButton; 26 28 Label1: TLabel; 27 29 Label2: TLabel; … … 34 36 procedure Button3Click(Sender: TObject); 35 37 procedure Button4Click(Sender: TObject); 38 procedure Button5Click(Sender: TObject); 39 procedure Button6Click(Sender: TObject); 36 40 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 37 41 procedure FormCreate(Sender: TObject); … … 157 161 for I := 0 to SpinEdit1.Value do 158 162 Scheduler.AddMethod(Worker); 163 end; 164 165 procedure TForm1.Button5Click(Sender: TObject); 166 var 167 NewThread: TThread; 168 I: Integer; 169 begin 170 try 171 I := 0; 172 while True do begin 173 NewThread := TThread.Create(True); 174 NewThread.FreeOnTerminate:= False; 175 Inc(I); 176 end; 177 except 178 ShowMessage('Application can create ' + IntToStr(I) +' TThread instances'); 179 end; 180 end; 181 182 procedure TForm1.Button6Click(Sender: TObject); 183 begin 184 ShowMessage(IntToStr(GetThreadID)); 159 185 end; 160 186
Note:
See TracChangeset
for help on using the changeset viewer.