home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 16 / IOPROG_16.ISO / soft / macaxsdk / macsdk.hqx / ActiveX DR3 SDK / ActiveX SDK / Container Common / CAXThreadManager.h < prev    next >
MacBinary  |  1997-04-30  |  5.1 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Wed Apr 30 14:37:57 1997, modified Wed Apr 30 14:37:57 1997, creator 'CWIE', type ASCII, 4513 bytes "CAXThreadManager.h" , at 0x1221 456 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 12 43 41 58 54 68 72 | 65 61 64 4d 61 6e 61 67 |..CAXThr|eadManag|
|00000010| 65 72 2e 68 00 00 00 00 | 00 00 00 00 00 00 00 00 |er.h....|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 11 a1 00 | 00 01 c8 af 8d 42 05 af |........|.....B..|
|00000060| 8d 42 05 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.B......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 d3 03 00 00 |........|........|
|00000080| 2f 2f 20 3e 3e 3e 20 a9 | 20 31 39 39 36 2d 31 39 |// >>> .| 1996-19|
|00000090| 39 37 20 4d 69 63 72 6f | 73 6f 66 74 20 43 6f 72 |97 Micro|soft Cor|
|000000a0| 70 6f 72 61 74 69 6f 6e | 2e 20 20 41 6c 6c 20 72 |poration|. All r|
|000000b0| 69 67 68 74 73 20 72 65 | 73 65 72 76 65 64 2e 20 |ights re|served. |
|000000c0| 3c 3c 3c 0d 63 6c 61 73 | 73 20 43 41 58 54 68 72 |<<<.clas|s CAXThr|
|000000d0| 65 61 64 4d 61 6e 61 67 | 65 72 20 3a 20 0d 09 70 |eadManag|er : ..p|
|000000e0| 75 62 6c 69 63 20 43 42 | 61 73 65 43 4f 4d 2c 0d |ublic CB|aseCOM,.|
|000000f0| 09 70 75 62 6c 69 63 20 | 49 4d 61 63 54 68 72 65 |.public |IMacThre|
|00000100| 61 64 4d 61 6e 61 67 65 | 72 0d 7b 0d 70 75 62 6c |adManage|r.{.publ|
|00000110| 69 63 3a 0d 09 43 41 58 | 54 68 72 65 61 64 4d 61 |ic:..CAX|ThreadMa|
|00000120| 6e 61 67 65 72 28 41 58 | 54 68 72 65 61 64 43 61 |nager(AX|ThreadCa|
|00000130| 6c 6c 62 61 63 6b 73 2a | 20 69 6e 54 68 72 65 61 |llbacks*| inThrea|
|00000140| 64 43 61 6c 6c 62 61 63 | 6b 73 29 20 7b 20 6d 54 |dCallbac|ks) { mT|
|00000150| 68 72 65 61 64 43 61 6c | 6c 62 61 63 6b 73 20 3d |hreadCal|lbacks =|
|00000160| 20 2a 69 6e 54 68 72 65 | 61 64 43 61 6c 6c 62 61 | *inThre|adCallba|
|00000170| 63 6b 73 3b 20 7d 0d 09 | 0d 09 2f 2f 20 2a 2a 2a |cks; }..|..// ***|
|00000180| 20 49 55 6e 6b 6e 6f 77 | 6e 20 6d 65 74 68 6f 64 | IUnknow|n method|
|00000190| 73 20 2a 2a 2a 0d 09 53 | 54 44 4d 45 54 48 4f 44 |s ***..S|TDMETHOD|
|000001a0| 20 28 51 75 65 72 79 49 | 6e 74 65 72 66 61 63 65 | (QueryI|nterface|
|000001b0| 29 20 28 54 48 49 53 5f | 20 52 45 46 49 49 44 20 |) (THIS_| REFIID |
|000001c0| 69 6e 52 65 66 49 49 44 | 2c 20 76 6f 69 64 20 2a |inRefIID|, void *|
|000001d0| 2a 6f 75 74 4f 62 6a 29 | 3b 0d 09 53 54 44 4d 45 |*outObj)|;..STDME|
|000001e0| 54 48 4f 44 5f 28 55 4c | 4f 4e 47 2c 20 41 64 64 |THOD_(UL|ONG, Add|
|000001f0| 52 65 66 29 28 76 6f 69 | 64 29 20 7b 20 72 65 74 |Ref)(voi|d) { ret|
|00000200| 75 72 6e 20 43 42 61 73 | 65 43 4f 4d 3a 3a 41 64 |urn CBas|eCOM::Ad|
|00000210| 64 52 65 66 28 29 3b 20 | 7d 0d 09 53 54 44 4d 45 |dRef(); |}..STDME|
|00000220| 54 48 4f 44 5f 28 55 4c | 4f 4e 47 2c 20 52 65 6c |THOD_(UL|ONG, Rel|
|00000230| 65 61 73 65 29 28 76 6f | 69 64 29 20 7b 20 72 65 |ease)(vo|id) { re|
|00000240| 74 75 72 6e 20 43 42 61 | 73 65 43 4f 4d 3a 3a 52 |turn CBa|seCOM::R|
|00000250| 65 6c 65 61 73 65 28 29 | 3b 20 7d 0d 0d 09 2f 2f |elease()|; }...//|
|00000260| 20 2a 2a 2a 2a 20 49 4d | 61 63 54 68 72 65 61 64 | **** IM|acThread|
|00000270| 4d 61 6e 61 67 65 72 20 | 6d 65 74 68 6f 64 73 20 |Manager |methods |
|00000280| 2a 2a 2a 0d 09 53 54 44 | 4d 45 54 48 4f 44 28 20 |***..STD|METHOD( |
|00000290| 43 72 65 61 74 65 54 68 | 72 65 61 64 50 6f 6f 6c |CreateTh|readPool|
|000002a0| 29 28 54 48 49 53 5f 20 | 54 68 72 65 61 64 53 74 |)(THIS_ |ThreadSt|
|000002b0| 79 6c 65 20 74 68 72 65 | 61 64 53 74 79 6c 65 2c |yle thre|adStyle,|
|000002c0| 20 73 68 6f 72 74 20 6e | 75 6d 54 6f 43 72 65 61 | short n|umToCrea|
|000002d0| 74 65 2c 20 53 69 7a 65 | 20 73 74 61 63 6b 53 69 |te, Size| stackSi|
|000002e0| 7a 65 29 0d 09 09 7b 20 | 72 65 74 75 72 6e 20 6d |ze)...{ |return m|
|000002f0| 54 68 72 65 61 64 43 61 | 6c 6c 62 61 63 6b 73 2e |ThreadCa|llbacks.|
|00000300| 41 58 43 72 65 61 74 65 | 54 68 72 65 61 64 50 6f |AXCreate|ThreadPo|
|00000310| 6f 6c 28 74 68 72 65 61 | 64 53 74 79 6c 65 2c 20 |ol(threa|dStyle, |
|00000320| 6e 75 6d 54 6f 43 72 65 | 61 74 65 2c 20 73 74 61 |numToCre|ate, sta|
|00000330| 63 6b 53 69 7a 65 29 3b | 20 7d 0d 0d 09 53 54 44 |ckSize);| }...STD|
|00000340| 4d 45 54 48 4f 44 28 20 | 47 65 74 46 72 65 65 54 |METHOD( |GetFreeT|
|00000350| 68 72 65 61 64 43 6f 75 | 6e 74 29 28 54 48 49 53 |hreadCou|nt)(THIS|
|00000360| 5f 20 54 68 72 65 61 64 | 53 74 79 6c 65 20 74 68 |_ Thread|Style th|
|00000370| 72 65 61 64 53 74 79 6c | 65 2c 20 73 68 6f 72 74 |readStyl|e, short|
|00000380| 20 2a 66 72 65 65 43 6f | 75 6e 74 29 0d 09 09 7b | *freeCo|unt)...{|
|00000390| 20 72 65 74 75 72 6e 20 | 6d 54 68 72 65 61 64 43 | return |mThreadC|
|000003a0| 61 6c 6c 62 61 63 6b 73 | 2e 41 58 47 65 74 46 72 |allbacks|.AXGetFr|
|000003b0| 65 65 54 68 72 65 61 64 | 43 6f 75 6e 74 28 74 68 |eeThread|Count(th|
|000003c0| 72 65 61 64 53 74 79 6c | 65 2c 20 66 72 65 65 43 |readStyl|e, freeC|
|000003d0| 6f 75 6e 74 29 3b 20 7d | 0d 0d 09 53 54 44 4d 45 |ount); }|...STDME|
|000003e0| 54 48 4f 44 28 20 47 65 | 74 53 70 65 63 69 66 69 |THOD( Ge|tSpecifi|
|000003f0| 63 46 72 65 65 54 68 72 | 65 61 64 43 6f 75 6e 74 |cFreeThr|eadCount|
|00000400| 29 28 54 48 49 53 5f 20 | 54 68 72 65 61 64 53 74 |)(THIS_ |ThreadSt|
|00000410| 79 6c 65 20 74 68 72 65 | 61 64 53 74 79 6c 65 2c |yle thre|adStyle,|
|00000420| 20 53 69 7a 65 20 73 74 | 61 63 6b 53 69 7a 65 2c | Size st|ackSize,|
|00000430| 20 73 68 6f 72 74 20 2a | 66 72 65 65 43 6f 75 6e | short *|freeCoun|
|00000440| 74 29 0d 09 09 7b 20 72 | 65 74 75 72 6e 20 6d 54 |t)...{ r|eturn mT|
|00000450| 68 72 65 61 64 43 61 6c | 6c 62 61 63 6b 73 2e 41 |hreadCal|lbacks.A|
|00000460| 58 47 65 74 53 70 65 63 | 69 66 69 63 46 72 65 65 |XGetSpec|ificFree|
|00000470| 54 68 72 65 61 64 43 6f | 75 6e 74 28 74 68 72 65 |ThreadCo|unt(thre|
|00000480| 61 64 53 74 79 6c 65 2c | 20 73 74 61 63 6b 53 69 |adStyle,| stackSi|
|00000490| 7a 65 2c 20 66 72 65 65 | 43 6f 75 6e 74 29 3b 20 |ze, free|Count); |
|000004a0| 7d 0d 0d 09 53 54 44 4d | 45 54 48 4f 44 28 20 47 |}...STDM|ETHOD( G|
|000004b0| 65 74 44 65 66 61 75 6c | 74 54 68 72 65 61 64 53 |etDefaul|tThreadS|
|000004c0| 74 61 63 6b 53 69 7a 65 | 29 28 54 48 49 53 5f 20 |tackSize|)(THIS_ |
|000004d0| 54 68 72 65 61 64 53 74 | 79 6c 65 20 74 68 72 65 |ThreadSt|yle thre|
|000004e0| 61 64 53 74 79 6c 65 2c | 20 53 69 7a 65 20 2a 73 |adStyle,| Size *s|
|000004f0| 74 61 63 6b 53 69 7a 65 | 29 0d 09 09 7b 20 72 65 |tackSize|)...{ re|
|00000500| 74 75 72 6e 20 6d 54 68 | 72 65 61 64 43 61 6c 6c |turn mTh|readCall|
|00000510| 62 61 63 6b 73 2e 41 58 | 47 65 74 44 65 66 61 75 |backs.AX|GetDefau|
|00000520| 6c 74 54 68 72 65 61 64 | 53 74 61 63 6b 53 69 7a |ltThread|StackSiz|
|00000530| 65 28 74 68 72 65 61 64 | 53 74 79 6c 65 2c 20 73 |e(thread|Style, s|
|00000540| 74 61 63 6b 53 69 7a 65 | 29 3b 20 7d 0d 0d 09 53 |tackSize|); }...S|
|00000550| 54 44 4d 45 54 48 4f 44 | 28 20 54 68 72 65 61 64 |TDMETHOD|( Thread|
|00000560| 43 75 72 72 65 6e 74 53 | 74 61 63 6b 53 70 61 63 |CurrentS|tackSpac|
|00000570| 65 29 28 54 48 49 53 5f | 20 54 68 72 65 61 64 49 |e)(THIS_| ThreadI|
|00000580| 44 20 74 68 72 65 61 64 | 2c 20 75 6e 73 69 67 6e |D thread|, unsign|
|00000590| 65 64 20 6c 6f 6e 67 20 | 2a 66 72 65 65 53 74 61 |ed long |*freeSta|
|000005a0| 63 6b 29 0d 09 09 7b 20 | 72 65 74 75 72 6e 20 6d |ck)...{ |return m|
|000005b0| 54 68 72 65 61 64 43 61 | 6c 6c 62 61 63 6b 73 2e |ThreadCa|llbacks.|
|000005c0| 41 58 54 68 72 65 61 64 | 43 75 72 72 65 6e 74 53 |AXThread|CurrentS|
|000005d0| 74 61 63 6b 53 70 61 63 | 65 28 74 68 72 65 61 64 |tackSpac|e(thread|
|000005e0| 2c 20 66 72 65 65 53 74 | 61 63 6b 29 3b 20 7d 0d |, freeSt|ack); }.|
|000005f0| 0d 09 53 54 44 4d 45 54 | 48 4f 44 28 20 4e 65 77 |..STDMET|HOD( New|
|00000600| 54 68 72 65 61 64 29 28 | 54 48 49 53 5f 20 54 68 |Thread)(|THIS_ Th|
|00000610| 72 65 61 64 53 74 79 6c | 65 20 74 68 72 65 61 64 |readStyl|e thread|
|00000620| 53 74 79 6c 65 2c 20 54 | 68 72 65 61 64 45 6e 74 |Style, T|hreadEnt|
|00000630| 72 79 50 72 6f 63 50 74 | 72 20 74 68 72 65 61 64 |ryProcPt|r thread|
|00000640| 45 6e 74 72 79 2c 20 76 | 6f 69 64 20 2a 74 68 72 |Entry, v|oid *thr|
|00000650| 65 61 64 50 61 72 61 6d | 2c 20 53 69 7a 65 20 73 |eadParam|, Size s|
|00000660| 74 61 63 6b 53 69 7a 65 | 2c 20 54 68 72 65 61 64 |tackSize|, Thread|
|00000670| 4f 70 74 69 6f 6e 73 20 | 6f 70 74 69 6f 6e 73 2c |Options |options,|
|00000680| 20 76 6f 69 64 20 2a 2a | 74 68 72 65 61 64 52 65 | void **|threadRe|
|00000690| 73 75 6c 74 2c 20 54 68 | 72 65 61 64 49 44 20 2a |sult, Th|readID *|
|000006a0| 74 68 72 65 61 64 4d 61 | 64 65 29 0d 09 09 7b 20 |threadMa|de)...{ |
|000006b0| 72 65 74 75 72 6e 20 6d | 54 68 72 65 61 64 43 61 |return m|ThreadCa|
|000006c0| 6c 6c 62 61 63 6b 73 2e | 41 58 4e 65 77 54 68 72 |llbacks.|AXNewThr|
|000006d0| 65 61 64 28 74 68 72 65 | 61 64 53 74 79 6c 65 2c |ead(thre|adStyle,|
|000006e0| 20 74 68 72 65 61 64 45 | 6e 74 72 79 2c 20 74 68 | threadE|ntry, th|
|000006f0| 72 65 61 64 50 61 72 61 | 6d 2c 20 73 74 61 63 6b |readPara|m, stack|
|00000700| 53 69 7a 65 2c 20 6f 70 | 74 69 6f 6e 73 2c 20 74 |Size, op|tions, t|
|00000710| 68 72 65 61 64 52 65 73 | 75 6c 74 2c 20 74 68 72 |hreadRes|ult, thr|
|00000720| 65 61 64 4d 61 64 65 29 | 3b 20 7d 0d 0d 09 53 54 |eadMade)|; }...ST|
|00000730| 44 4d 45 54 48 4f 44 28 | 20 44 69 73 70 6f 73 65 |DMETHOD(| Dispose|
|00000740| 54 68 72 65 61 64 29 28 | 54 48 49 53 5f 20 54 68 |Thread)(|THIS_ Th|
|00000750| 72 65 61 64 49 44 20 74 | 68 72 65 61 64 54 6f 44 |readID t|hreadToD|
|00000760| 75 6d 70 2c 20 76 6f 69 | 64 20 2a 74 68 72 65 61 |ump, voi|d *threa|
|00000770| 64 52 65 73 75 6c 74 2c | 20 42 6f 6f 6c 65 61 6e |dResult,| Boolean|
|00000780| 20 72 65 63 79 63 6c 65 | 54 68 72 65 61 64 29 0d | recycle|Thread).|
|00000790| 09 09 7b 20 72 65 74 75 | 72 6e 20 6d 54 68 72 65 |..{ retu|rn mThre|
|000007a0| 61 64 43 61 6c 6c 62 61 | 63 6b 73 2e 41 58 44 69 |adCallba|cks.AXDi|
|000007b0| 73 70 6f 73 65 54 68 72 | 65 61 64 28 74 68 72 65 |sposeThr|ead(thre|
|000007c0| 61 64 54 6f 44 75 6d 70 | 2c 20 74 68 72 65 61 64 |adToDump|, thread|
|000007d0| 52 65 73 75 6c 74 2c 20 | 72 65 63 79 63 6c 65 54 |Result, |recycleT|
|000007e0| 68 72 65 61 64 29 3b 20 | 7d 0d 0d 09 53 54 44 4d |hread); |}...STDM|
|000007f0| 45 54 48 4f 44 28 20 59 | 69 65 6c 64 54 6f 54 68 |ETHOD( Y|ieldToTh|
|00000800| 72 65 61 64 29 28 54 48 | 49 53 5f 20 54 68 72 65 |read)(TH|IS_ Thre|
|00000810| 61 64 49 44 20 73 75 67 | 67 65 73 74 65 64 54 68 |adID sug|gestedTh|
|00000820| 72 65 61 64 29 0d 09 09 | 7b 20 72 65 74 75 72 6e |read)...|{ return|
|00000830| 20 6d 54 68 72 65 61 64 | 43 61 6c 6c 62 61 63 6b | mThread|Callback|
|00000840| 73 2e 41 58 59 69 65 6c | 64 54 6f 54 68 72 65 61 |s.AXYiel|dToThrea|
|00000850| 64 28 73 75 67 67 65 73 | 74 65 64 54 68 72 65 61 |d(sugges|tedThrea|
|00000860| 64 29 3b 20 7d 0d 0d 09 | 53 54 44 4d 45 54 48 4f |d); }...|STDMETHO|
|00000870| 44 28 20 59 69 65 6c 64 | 54 6f 41 6e 79 54 68 72 |D( Yield|ToAnyThr|
|00000880| 65 61 64 29 28 54 48 49 | 53 29 0d 09 09 7b 20 72 |ead)(THI|S)...{ r|
|00000890| 65 74 75 72 6e 20 6d 54 | 68 72 65 61 64 43 61 6c |eturn mT|hreadCal|
|000008a0| 6c 62 61 63 6b 73 2e 41 | 58 59 69 65 6c 64 54 6f |lbacks.A|XYieldTo|
|000008b0| 41 6e 79 54 68 72 65 61 | 64 28 29 3b 20 7d 0d 0d |AnyThrea|d(); }..|
|000008c0| 09 53 54 44 4d 45 54 48 | 4f 44 28 20 47 65 74 43 |.STDMETH|OD( GetC|
|000008d0| 75 72 72 65 6e 74 54 68 | 72 65 61 64 29 28 54 48 |urrentTh|read)(TH|
|000008e0| 49 53 5f 20 54 68 72 65 | 61 64 49 44 20 2a 63 75 |IS_ Thre|adID *cu|
|000008f0| 72 72 65 6e 74 54 68 72 | 65 61 64 49 44 29 0d 09 |rrentThr|eadID)..|
|00000900| 09 7b 20 72 65 74 75 72 | 6e 20 6d 54 68 72 65 61 |.{ retur|n mThrea|
|00000910| 64 43 61 6c 6c 62 61 63 | 6b 73 2e 41 58 47 65 74 |dCallbac|ks.AXGet|
|00000920| 43 75 72 72 65 6e 74 54 | 68 72 65 61 64 28 63 75 |CurrentT|hread(cu|
|00000930| 72 72 65 6e 74 54 68 72 | 65 61 64 49 44 29 3b 20 |rrentThr|eadID); |
|00000940| 7d 0d 0d 09 53 54 44 4d | 45 54 48 4f 44 28 20 47 |}...STDM|ETHOD( G|
|00000950| 65 74 54 68 72 65 61 64 | 53 74 61 74 65 29 28 54 |etThread|State)(T|
|00000960| 48 49 53 5f 20 54 68 72 | 65 61 64 49 44 20 74 68 |HIS_ Thr|eadID th|
|00000970| 72 65 61 64 54 6f 47 65 | 74 2c 20 54 68 72 65 61 |readToGe|t, Threa|
|00000980| 64 53 74 61 74 65 20 2a | 74 68 72 65 61 64 53 74 |dState *|threadSt|
|00000990| 61 74 65 29 0d 09 09 7b | 20 72 65 74 75 72 6e 20 |ate)...{| return |
|000009a0| 6d 54 68 72 65 61 64 43 | 61 6c 6c 62 61 63 6b 73 |mThreadC|allbacks|
|000009b0| 2e 41 58 47 65 74 54 68 | 72 65 61 64 53 74 61 74 |.AXGetTh|readStat|
|000009c0| 65 28 74 68 72 65 61 64 | 54 6f 47 65 74 2c 20 74 |e(thread|ToGet, t|
|000009d0| 68 72 65 61 64 53 74 61 | 74 65 29 3b 20 7d 0d 0d |hreadSta|te); }..|
|000009e0| 09 53 54 44 4d 45 54 48 | 4f 44 28 20 53 65 74 54 |.STDMETH|OD( SetT|
|000009f0| 68 72 65 61 64 53 74 61 | 74 65 29 28 54 48 49 53 |hreadSta|te)(THIS|
|00000a00| 5f 20 54 68 72 65 61 64 | 49 44 20 74 68 72 65 61 |_ Thread|ID threa|
|00000a10| 64 54 6f 53 65 74 2c 20 | 54 68 72 65 61 64 53 74 |dToSet, |ThreadSt|
|00000a20| 61 74 65 20 6e 65 77 53 | 74 61 74 65 2c 20 54 68 |ate newS|tate, Th|
|00000a30| 72 65 61 64 49 44 20 73 | 75 67 67 65 73 74 65 64 |readID s|uggested|
|00000a40| 54 68 72 65 61 64 29 0d | 09 09 7b 20 72 65 74 75 |Thread).|..{ retu|
|00000a50| 72 6e 20 6d 54 68 72 65 | 61 64 43 61 6c 6c 62 61 |rn mThre|adCallba|
|00000a60| 63 6b 73 2e 41 58 53 65 | 74 54 68 72 65 61 64 53 |cks.AXSe|tThreadS|
|00000a70| 74 61 74 65 28 74 68 72 | 65 61 64 54 6f 53 65 74 |tate(thr|eadToSet|
|00000a80| 2c 20 6e 65 77 53 74 61 | 74 65 2c 20 73 75 67 67 |, newSta|te, sugg|
|00000a90| 65 73 74 65 64 54 68 72 | 65 61 64 29 3b 20 7d 0d |estedThr|ead); }.|
|00000aa0| 0d 09 53 54 44 4d 45 54 | 48 4f 44 28 20 53 65 74 |..STDMET|HOD( Set|
|00000ab0| 54 68 72 65 61 64 53 74 | 61 74 65 45 6e 64 43 72 |ThreadSt|ateEndCr|
|00000ac0| 69 74 69 63 61 6c 29 28 | 54 48 49 53 5f 20 54 68 |itical)(|THIS_ Th|
|00000ad0| 72 65 61 64 49 44 20 74 | 68 72 65 61 64 54 6f 53 |readID t|hreadToS|
|00000ae0| 65 74 2c 20 54 68 72 65 | 61 64 53 74 61 74 65 20 |et, Thre|adState |
|00000af0| 6e 65 77 53 74 61 74 65 | 2c 20 54 68 72 65 61 64 |newState|, Thread|
|00000b00| 49 44 20 73 75 67 67 65 | 73 74 65 64 54 68 72 65 |ID sugge|stedThre|
|00000b10| 61 64 29 0d 09 09 7b 20 | 72 65 74 75 72 6e 20 6d |ad)...{ |return m|
|00000b20| 54 68 72 65 61 64 43 61 | 6c 6c 62 61 63 6b 73 2e |ThreadCa|llbacks.|
|00000b30| 41 58 53 65 74 54 68 72 | 65 61 64 53 74 61 74 65 |AXSetThr|eadState|
|00000b40| 45 6e 64 43 72 69 74 69 | 63 61 6c 28 74 68 72 65 |EndCriti|cal(thre|
|00000b50| 61 64 54 6f 53 65 74 2c | 20 6e 65 77 53 74 61 74 |adToSet,| newStat|
|00000b60| 65 2c 20 73 75 67 67 65 | 73 74 65 64 54 68 72 65 |e, sugge|stedThre|
|00000b70| 61 64 29 3b 20 7d 0d 0d | 09 53 54 44 4d 45 54 48 |ad); }..|.STDMETH|
|00000b80| 4f 44 28 20 53 65 74 54 | 68 72 65 61 64 53 63 68 |OD( SetT|hreadSch|
|00000b90| 65 64 75 6c 65 72 29 28 | 54 48 49 53 5f 20 54 68 |eduler)(|THIS_ Th|
|00000ba0| 72 65 61 64 53 63 68 65 | 64 75 6c 65 72 50 72 6f |readSche|dulerPro|
|00000bb0| 63 50 74 72 20 74 68 72 | 65 61 64 53 63 68 65 64 |cPtr thr|eadSched|
|00000bc0| 75 6c 65 72 29 0d 09 09 | 7b 20 72 65 74 75 72 6e |uler)...|{ return|
|00000bd0| 20 6d 54 68 72 65 61 64 | 43 61 6c 6c 62 61 63 6b | mThread|Callback|
|00000be0| 73 2e 41 58 53 65 74 54 | 68 72 65 61 64 53 63 68 |s.AXSetT|hreadSch|
|00000bf0| 65 64 75 6c 65 72 28 74 | 68 72 65 61 64 53 63 68 |eduler(t|hreadSch|
|00000c00| 65 64 75 6c 65 72 29 3b | 20 7d 0d 0d 09 53 54 44 |eduler);| }...STD|
|00000c10| 4d 45 54 48 4f 44 28 20 | 53 65 74 54 68 72 65 61 |METHOD( |SetThrea|
|00000c20| 64 53 77 69 74 63 68 65 | 72 29 28 54 48 49 53 5f |dSwitche|r)(THIS_|
|00000c30| 20 54 68 72 65 61 64 49 | 44 20 74 68 72 65 61 64 | ThreadI|D thread|
|00000c40| 2c 20 54 68 72 65 61 64 | 53 77 69 74 63 68 50 72 |, Thread|SwitchPr|
|00000c50| 6f 63 50 74 72 20 74 68 | 72 65 61 64 53 77 69 74 |ocPtr th|readSwit|
|00000c60| 63 68 65 72 2c 20 76 6f | 69 64 20 2a 73 77 69 74 |cher, vo|id *swit|
|00000c70| 63 68 50 72 6f 63 50 61 | 72 61 6d 2c 20 42 6f 6f |chProcPa|ram, Boo|
|00000c80| 6c 65 61 6e 20 69 6e 4f | 72 4f 75 74 29 0d 09 09 |lean inO|rOut)...|
|00000c90| 7b 20 72 65 74 75 72 6e | 20 6d 54 68 72 65 61 64 |{ return| mThread|
|00000ca0| 43 61 6c 6c 62 61 63 6b | 73 2e 41 58 53 65 74 54 |Callback|s.AXSetT|
|00000cb0| 68 72 65 61 64 53 77 69 | 74 63 68 65 72 28 74 68 |hreadSwi|tcher(th|
|00000cc0| 72 65 61 64 2c 20 74 68 | 72 65 61 64 53 77 69 74 |read, th|readSwit|
|00000cd0| 63 68 65 72 2c 20 73 77 | 69 74 63 68 50 72 6f 63 |cher, sw|itchProc|
|00000ce0| 50 61 72 61 6d 2c 20 69 | 6e 4f 72 4f 75 74 29 3b |Param, i|nOrOut);|
|00000cf0| 20 7d 0d 0d 09 53 54 44 | 4d 45 54 48 4f 44 28 20 | }...STD|METHOD( |
|00000d00| 53 65 74 54 68 72 65 61 | 64 54 65 72 6d 69 6e 61 |SetThrea|dTermina|
|00000d10| 74 6f 72 29 28 54 48 49 | 53 5f 20 54 68 72 65 61 |tor)(THI|S_ Threa|
|00000d20| 64 49 44 20 74 68 72 65 | 61 64 2c 20 54 68 72 65 |dID thre|ad, Thre|
|00000d30| 61 64 54 65 72 6d 69 6e | 61 74 69 6f 6e 50 72 6f |adTermin|ationPro|
|00000d40| 63 50 74 72 20 74 68 72 | 65 61 64 54 65 72 6d 69 |cPtr thr|eadTermi|
|00000d50| 6e 61 74 6f 72 2c 20 76 | 6f 69 64 20 2a 74 65 72 |nator, v|oid *ter|
|00000d60| 6d 69 6e 61 74 69 6f 6e | 50 72 6f 63 50 61 72 61 |mination|ProcPara|
|00000d70| 6d 29 0d 09 09 7b 20 72 | 65 74 75 72 6e 20 6d 54 |m)...{ r|eturn mT|
|00000d80| 68 72 65 61 64 43 61 6c | 6c 62 61 63 6b 73 2e 41 |hreadCal|lbacks.A|
|00000d90| 58 53 65 74 54 68 72 65 | 61 64 54 65 72 6d 69 6e |XSetThre|adTermin|
|00000da0| 61 74 6f 72 28 74 68 72 | 65 61 64 2c 20 74 68 72 |ator(thr|ead, thr|
|00000db0| 65 61 64 54 65 72 6d 69 | 6e 61 74 6f 72 2c 20 74 |eadTermi|nator, t|
|00000dc0| 65 72 6d 69 6e 61 74 69 | 6f 6e 50 72 6f 63 50 61 |erminati|onProcPa|
|00000dd0| 72 61 6d 29 3b 20 7d 0d | 0d 09 53 54 44 4d 45 54 |ram); }.|..STDMET|
|00000de0| 48 4f 44 28 20 54 68 72 | 65 61 64 42 65 67 69 6e |HOD( Thr|eadBegin|
|00000df0| 43 72 69 74 69 63 61 6c | 29 28 54 48 49 53 29 0d |Critical|)(THIS).|
|00000e00| 09 09 7b 20 72 65 74 75 | 72 6e 20 6d 54 68 72 65 |..{ retu|rn mThre|
|00000e10| 61 64 43 61 6c 6c 62 61 | 63 6b 73 2e 41 58 54 68 |adCallba|cks.AXTh|
|00000e20| 72 65 61 64 42 65 67 69 | 6e 43 72 69 74 69 63 61 |readBegi|nCritica|
|00000e30| 6c 28 29 3b 20 7d 0d 0d | 09 53 54 44 4d 45 54 48 |l(); }..|.STDMETH|
|00000e40| 4f 44 28 20 54 68 72 65 | 61 64 45 6e 64 43 72 69 |OD( Thre|adEndCri|
|00000e50| 74 69 63 61 6c 29 28 54 | 48 49 53 29 0d 09 09 7b |tical)(T|HIS)...{|
|00000e60| 20 72 65 74 75 72 6e 20 | 6d 54 68 72 65 61 64 43 | return |mThreadC|
|00000e70| 61 6c 6c 62 61 63 6b 73 | 2e 41 58 54 68 72 65 61 |allbacks|.AXThrea|
|00000e80| 64 45 6e 64 43 72 69 74 | 69 63 61 6c 28 29 3b 20 |dEndCrit|ical(); |
|00000e90| 7d 0d 0d 09 53 54 44 4d | 45 54 48 4f 44 28 20 53 |}...STDM|ETHOD( S|
|00000ea0| 65 74 44 65 62 75 67 67 | 65 72 4e 6f 74 69 66 69 |etDebugg|erNotifi|
|00000eb0| 63 61 74 69 6f 6e 50 72 | 6f 63 73 29 28 54 48 49 |cationPr|ocs)(THI|
|00000ec0| 53 5f 20 44 65 62 75 67 | 67 65 72 4e 65 77 54 68 |S_ Debug|gerNewTh|
|00000ed0| 72 65 61 64 50 72 6f 63 | 50 74 72 20 6e 6f 74 69 |readProc|Ptr noti|
|00000ee0| 66 79 4e 65 77 54 68 72 | 65 61 64 2c 20 44 65 62 |fyNewThr|ead, Deb|
|00000ef0| 75 67 67 65 72 44 69 73 | 70 6f 73 65 54 68 72 65 |uggerDis|poseThre|
|00000f00| 61 64 50 72 6f 63 50 74 | 72 20 6e 6f 74 69 66 79 |adProcPt|r notify|
|00000f10| 44 69 73 70 6f 73 65 54 | 68 72 65 61 64 2c 20 44 |DisposeT|hread, D|
|00000f20| 65 62 75 67 67 65 72 54 | 68 72 65 61 64 53 63 68 |ebuggerT|hreadSch|
|00000f30| 65 64 75 6c 65 72 50 72 | 6f 63 50 74 72 20 6e 6f |edulerPr|ocPtr no|
|00000f40| 74 69 66 79 54 68 72 65 | 61 64 53 63 68 65 64 75 |tifyThre|adSchedu|
|00000f50| 6c 65 72 29 0d 09 09 7b | 20 72 65 74 75 72 6e 20 |ler)...{| return |
|00000f60| 6d 54 68 72 65 61 64 43 | 61 6c 6c 62 61 63 6b 73 |mThreadC|allbacks|
|00000f70| 2e 41 58 53 65 74 44 65 | 62 75 67 67 65 72 4e 6f |.AXSetDe|buggerNo|
|00000f80| 74 69 66 69 63 61 74 69 | 6f 6e 50 72 6f 63 73 28 |tificati|onProcs(|
|00000f90| 6e 6f 74 69 66 79 4e 65 | 77 54 68 72 65 61 64 2c |notifyNe|wThread,|
|00000fa0| 20 6e 6f 74 69 66 79 44 | 69 73 70 6f 73 65 54 68 | notifyD|isposeTh|
|00000fb0| 72 65 61 64 2c 20 6e 6f | 74 69 66 79 54 68 72 65 |read, no|tifyThre|
|00000fc0| 61 64 53 63 68 65 64 75 | 6c 65 72 29 3b 20 7d 0d |adSchedu|ler); }.|
|00000fd0| 0d 09 53 54 44 4d 45 54 | 48 4f 44 28 20 47 65 74 |..STDMET|HOD( Get|
|00000fe0| 54 68 72 65 61 64 43 75 | 72 72 65 6e 74 54 61 73 |ThreadCu|rrentTas|
|00000ff0| 6b 52 65 66 29 28 54 48 | 49 53 5f 20 54 68 72 65 |kRef)(TH|IS_ Thre|
|00001000| 61 64 54 61 73 6b 52 65 | 66 20 2a 74 68 72 65 61 |adTaskRe|f *threa|
|00001010| 64 54 52 65 66 29 0d 09 | 09 7b 20 72 65 74 75 72 |dTRef)..|.{ retur|
|00001020| 6e 20 6d 54 68 72 65 61 | 64 43 61 6c 6c 62 61 63 |n mThrea|dCallbac|
|00001030| 6b 73 2e 41 58 47 65 74 | 54 68 72 65 61 64 43 75 |ks.AXGet|ThreadCu|
|00001040| 72 72 65 6e 74 54 61 73 | 6b 52 65 66 28 74 68 72 |rrentTas|kRef(thr|
|00001050| 65 61 64 54 52 65 66 29 | 3b 20 7d 0d 0d 09 53 54 |eadTRef)|; }...ST|
|00001060| 44 4d 45 54 48 4f 44 28 | 20 47 65 74 54 68 72 65 |DMETHOD(| GetThre|
|00001070| 61 64 53 74 61 74 65 47 | 69 76 65 6e 54 61 73 6b |adStateG|ivenTask|
|00001080| 52 65 66 29 28 54 48 49 | 53 5f 20 54 68 72 65 61 |Ref)(THI|S_ Threa|
|00001090| 64 54 61 73 6b 52 65 66 | 20 74 68 72 65 61 64 54 |dTaskRef| threadT|
|000010a0| 52 65 66 2c 20 54 68 72 | 65 61 64 49 44 20 74 68 |Ref, Thr|eadID th|
|000010b0| 72 65 61 64 54 6f 47 65 | 74 2c 20 54 68 72 65 61 |readToGe|t, Threa|
|000010c0| 64 53 74 61 74 65 20 2a | 74 68 72 65 61 64 53 74 |dState *|threadSt|
|000010d0| 61 74 65 29 0d 09 09 7b | 20 72 65 74 75 72 6e 20 |ate)...{| return |
|000010e0| 6d 54 68 72 65 61 64 43 | 61 6c 6c 62 61 63 6b 73 |mThreadC|allbacks|
|000010f0| 2e 41 58 47 65 74 54 68 | 72 65 61 64 53 74 61 74 |.AXGetTh|readStat|
|00001100| 65 47 69 76 65 6e 54 61 | 73 6b 52 65 66 28 74 68 |eGivenTa|skRef(th|
|00001110| 72 65 61 64 54 52 65 66 | 2c 20 74 68 72 65 61 64 |readTRef|, thread|
|00001120| 54 6f 47 65 74 2c 20 74 | 68 72 65 61 64 53 74 61 |ToGet, t|hreadSta|
|00001130| 74 65 29 3b 20 7d 0d 0d | 09 53 54 44 4d 45 54 48 |te); }..|.STDMETH|
|00001140| 4f 44 28 20 53 65 74 54 | 68 72 65 61 64 52 65 61 |OD( SetT|hreadRea|
|00001150| 64 79 47 69 76 65 6e 54 | 61 73 6b 52 65 66 29 28 |dyGivenT|askRef)(|
|00001160| 54 48 49 53 5f 20 54 68 | 72 65 61 64 54 61 73 6b |THIS_ Th|readTask|
|00001170| 52 65 66 20 74 68 72 65 | 61 64 54 52 65 66 2c 20 |Ref thre|adTRef, |
|00001180| 54 68 72 65 61 64 49 44 | 20 74 68 72 65 61 64 54 |ThreadID| threadT|
|00001190| 6f 53 65 74 29 0d 09 09 | 7b 20 72 65 74 75 72 6e |oSet)...|{ return|
|000011a0| 20 6d 54 68 72 65 61 64 | 43 61 6c 6c 62 61 63 6b | mThread|Callback|
|000011b0| 73 2e 41 58 53 65 74 54 | 68 72 65 61 64 52 65 61 |s.AXSetT|hreadRea|
|000011c0| 64 79 47 69 76 65 6e 54 | 61 73 6b 52 65 66 28 74 |dyGivenT|askRef(t|
|000011d0| 68 72 65 61 64 54 52 65 | 66 2c 20 74 68 72 65 61 |hreadTRe|f, threa|
|000011e0| 64 54 6f 53 65 74 29 3b | 20 7d 0d 09 09 0d 70 72 |dToSet);| }....pr|
|000011f0| 69 76 61 74 65 3a 0d 09 | 41 58 54 68 72 65 61 64 |ivate:..|AXThread|
|00001200| 43 61 6c 6c 62 61 63 6b | 73 20 6d 54 68 72 65 61 |Callback|s mThrea|
|00001210| 64 43 61 6c 6c 62 61 63 | 6b 73 3b 0d 0d 7d 3b 0d |dCallbac|ks;..};.|
|00001220| 0d 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001280| 00 00 01 00 00 00 01 76 | 00 00 00 76 00 00 00 52 |.......v|...v...R|
|00001290| 00 00 15 88 f1 73 00 01 | ae e0 24 93 00 c0 00 00 |.....s..|..$.....|
|000012a0| 74 d8 ff 00 6d 00 00 00 | 12 84 c4 74 00 01 ae d3 |t...m...|...t....|
|000012b0| 12 43 41 58 54 68 72 65 | 61 64 4d 61 6e 61 67 65 |.CAXThre|adManage|
|000012c0| 72 2e 68 61 02 00 00 00 | 50 61 72 74 53 49 54 21 |r.ha....|PartSIT!|
|000012d0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|000012e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012f0| 00 00 b0 56 8e 14 00 00 | 00 00 00 00 01 c8 c0 56 |...V....|.......V|
|00001300| 01 c0 00 00 54 18 ff 00 | 72 00 00 00 15 89 1e 79 |....T...|r......y|
|00001310| 00 01 ae bd aa e2 00 c0 | 00 00 58 38 ff 00 73 00 |........|..X8..s.|
|00001320| 00 00 11 53 7a 00 01 ae | bd c5 61 00 85 ae ff 00 |...Sz...|..a.....|
|00001330| 74 00 00 00 15 83 2b 7b | 00 01 ae ee e1 15 00 c0 |t.....+{|........|
|00001340| 00 00 70 6e ff 00 75 00 | 00 00 11 88 f9 7c 00 01 |..pn..u.|.....|..|
|00001350| ae d8 dc 73 00 ff ff 00 | 76 00 00 00 15 83 db 7e |...s....|v......~|
|00001360| 00 01 ae ed 55 0b 01 c0 | 00 00 64 1c ff 00 77 00 |....U...|..d...w.|
|00001370| 00 00 15 80 9e 7f 00 01 | af 03 ab 63 01 c0 00 00 |........|...c....|
|00001380| 00 00 00 04 00 01 00 01 | 00 00 00 48 00 09 4d 6f |........|...H..Mo|
|00001390| 6e 61 63 6f 00 00 00 00 | 03 d0 4c 80 00 00 00 00 |naco....|..L.....|
|000013a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 06 |........|........|
|000013b0| 00 04 00 93 01 12 03 18 | 03 de 00 93 01 12 03 18 |........|........|
|000013c0| 03 de af 8d 09 c6 00 00 | 00 44 00 00 00 44 00 00 |........|.D...D..|
|000013d0| 00 00 01 00 00 00 00 1e | 00 93 01 12 03 18 03 de |........|........|
|000013e0| 00 93 01 12 03 18 03 de | 00 00 00 00 00 00 00 00 |........|........|
|000013f0| 00 00 00 00 00 00 00 00 | 01 00 00 00 01 76 00 00 |........|.....v..|
|00001400| 00 76 00 00 00 52 03 a7 | 6d 98 25 18 00 00 00 1c |.v...R..|m.%.....|
|00001410| 00 52 00 01 4d 57 42 42 | 00 00 00 12 4d 50 53 52 |.R..MWBB|....MPSR|
|00001420| 00 01 00 1e 03 f0 ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00001430| 03 ed ff ff 00 00 00 08 | 00 00 00 00 03 f0 ff ff |........|........|
|00001440| 00 00 00 54 03 b3 fe ec | 00 00 00 00 00 00 00 00 |...T....|........|
|00001450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+