MacBinary | 1996-02-19 | 1.9 KB | [TEXT/CWIE] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
10% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
1% | dexvert | Text File (text/txt) | fallback | Supported |
100% | file | MacBinary II, inited, Mon Feb 19 22:27:26 1996, modified Mon Feb 19 22:27:26 1996, creator 'CWIE', type ASCII, 1195 bytes "ThreadContext.h" , at 0x52b 410 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 | |
---|---|
key | value |
macFileType | [TEXT] |
macFileCreator | [CWIE] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0f 54 68 72 65 61 64 | 43 6f 6e 74 65 78 74 2e |..Thread|Context.|
|00000010| 68 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |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 04 ab 00 | 00 01 9a ad 4e f0 1e ad |........|....N...|
|00000060| 4e f0 1e 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |N.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 de 57 00 00 |........|.....W..|
|00000080| 0d 23 69 66 6e 64 65 66 | 20 5f 5f 54 48 52 45 41 |.#ifndef| __THREA|
|00000090| 44 43 4f 4e 54 45 58 54 | 5f 5f 0d 23 64 65 66 69 |DCONTEXT|__.#defi|
|000000a0| 6e 65 20 5f 5f 54 48 52 | 45 41 44 43 4f 4e 54 45 |ne __THR|EADCONTE|
|000000b0| 58 54 5f 5f 0d 0d 63 6c | 61 73 73 20 54 45 78 63 |XT__..cl|ass TExc|
|000000c0| 65 70 74 69 6f 6e 3b 0d | 0d 23 69 6e 63 6c 75 64 |eption;.|.#includ|
|000000d0| 65 20 3c 54 68 72 65 61 | 64 73 2e 68 3e 0d 23 69 |e <Threa|ds.h>.#i|
|000000e0| 6e 63 6c 75 64 65 20 22 | 4d 57 45 78 63 65 70 74 |nclude "|MWExcept|
|000000f0| 69 6f 6e 2e 68 22 0d 0d | 70 61 73 63 61 6c 20 4f |ion.h"..|pascal O|
|00000100| 53 45 72 72 20 54 68 72 | 65 61 64 43 72 65 61 74 |SErr Thr|eadCreat|
|00000110| 65 4e 6f 74 69 66 79 48 | 61 6e 64 6c 65 72 28 54 |eNotifyH|andler(T|
|00000120| 68 72 65 61 64 49 44 20 | 63 72 65 61 74 65 64 54 |hreadID |createdT|
|00000130| 68 72 65 61 64 2c 20 6c | 6f 6e 67 20 74 68 72 65 |hread, l|ong thre|
|00000140| 61 64 43 72 65 61 74 65 | 52 65 66 63 6f 6e 29 3b |adCreate|Refcon);|
|00000150| 0d 70 61 73 63 61 6c 20 | 4f 53 45 72 72 20 54 68 |.pascal |OSErr Th|
|00000160| 72 65 61 64 43 72 65 61 | 74 65 48 61 6e 64 6c 65 |readCrea|teHandle|
|00000170| 72 28 54 68 72 65 61 64 | 45 6e 74 72 79 50 72 6f |r(Thread|EntryPro|
|00000180| 63 50 74 72 20 74 68 72 | 65 61 64 45 6e 74 72 79 |cPtr thr|eadEntry|
|00000190| 2c 20 76 6f 69 64 20 2a | 74 68 72 65 61 64 50 61 |, void *|threadPa|
|000001a0| 72 61 6d 2c 20 6c 6f 6e | 67 20 68 61 6e 64 6c 65 |ram, lon|g handle|
|000001b0| 72 52 65 66 43 6f 6e 2c | 20 54 68 72 65 61 64 49 |rRefCon,| ThreadI|
|000001c0| 44 20 2a 74 68 72 65 61 | 64 4d 61 64 65 29 3b 0d |D *threa|dMade);.|
|000001d0| 0d 63 6c 61 73 73 20 54 | 54 68 72 65 61 64 43 6f |.class T|ThreadCo|
|000001e0| 6e 74 65 78 74 0d 7b 0d | 70 72 69 76 61 74 65 3a |ntext.{.|private:|
|000001f0| 0d 09 73 74 61 74 69 63 | 20 6c 6f 6e 67 09 09 66 |..static| long..f|
|00000200| 43 72 65 61 74 65 64 54 | 68 72 65 61 64 73 3b 0d |CreatedT|hreads;.|
|00000210| 09 73 74 61 74 69 63 20 | 6c 6f 6e 67 09 09 66 53 |.static |long..fS|
|00000220| 6c 65 65 70 69 6e 67 54 | 68 72 65 61 64 73 3b 0d |leepingT|hreads;.|
|00000230| 09 0d 70 75 62 6c 69 63 | 3a 0d 09 09 09 09 09 54 |..public|:......T|
|00000240| 54 68 72 65 61 64 43 6f | 6e 74 65 78 74 28 6c 6f |ThreadCo|ntext(lo|
|00000250| 6e 67 20 74 68 72 65 61 | 64 43 72 65 61 74 65 52 |ng threa|dCreateR|
|00000260| 65 66 63 6f 6e 29 3b 0d | 09 7e 54 54 68 72 65 61 |efcon);.|.~TThrea|
|00000270| 64 43 6f 6e 74 65 78 74 | 28 29 20 7b 20 2d 2d 66 |dContext|() { --f|
|00000280| 43 72 65 61 74 65 64 54 | 68 72 65 61 64 73 3b 20 |CreatedT|hreads; |
|00000290| 69 66 28 66 53 6c 65 65 | 70 69 6e 67 29 20 2d 2d |if(fSlee|ping) --|
|000002a0| 66 53 6c 65 65 70 69 6e | 67 54 68 72 65 61 64 73 |fSleepin|gThreads|
|000002b0| 3b 20 7d 0d 09 0d 09 76 | 6f 69 64 09 09 09 53 77 |; }....v|oid...Sw|
|000002c0| 61 70 49 6e 28 54 68 72 | 65 61 64 49 44 29 3b 0d |apIn(Thr|eadID);.|
|000002d0| 09 76 6f 69 64 09 09 09 | 53 77 61 70 4f 75 74 28 |.void...|SwapOut(|
|000002e0| 54 68 72 65 61 64 49 44 | 29 3b 0d 09 76 6f 69 64 |ThreadID|);..void|
|000002f0| 09 09 09 44 69 73 70 6f | 73 65 43 6f 6e 74 65 78 |...Dispo|seContex|
|00000300| 74 28 54 68 72 65 61 64 | 49 44 29 3b 0d 0d 09 6c |t(Thread|ID);...l|
|00000310| 6f 6e 67 09 09 09 54 68 | 72 65 61 64 43 72 65 61 |ong...Th|readCrea|
|00000320| 74 65 52 65 66 63 6f 6e | 28 29 20 63 6f 6e 73 74 |teRefcon|() const|
|00000330| 20 7b 20 72 65 74 75 72 | 6e 20 66 54 68 72 65 61 | { retur|n fThrea|
|00000340| 64 43 72 65 61 74 65 52 | 65 66 63 6f 6e 3b 20 7d |dCreateR|efcon; }|
|00000350| 0d 09 0d 09 73 74 61 74 | 69 63 20 6c 6f 6e 67 09 |....stat|ic long.|
|00000360| 09 54 6f 74 61 6c 54 68 | 72 65 61 64 73 28 29 20 |.TotalTh|reads() |
|00000370| 7b 20 72 65 74 75 72 6e | 20 66 43 72 65 61 74 65 |{ return| fCreate|
|00000380| 64 54 68 72 65 61 64 73 | 3b 20 7d 0d 09 73 74 61 |dThreads|; }..sta|
|00000390| 74 69 63 20 6c 6f 6e 67 | 09 09 53 6c 65 65 70 69 |tic long|..Sleepi|
|000003a0| 6e 67 54 68 72 65 61 64 | 73 28 29 20 7b 20 72 65 |ngThread|s() { re|
|000003b0| 74 75 72 6e 20 66 53 6c | 65 65 70 69 6e 67 54 68 |turn fSl|eepingTh|
|000003c0| 72 65 61 64 73 3b 20 7d | 0d 09 73 74 61 74 69 63 |reads; }|..static|
|000003d0| 20 6c 6f 6e 67 09 09 41 | 63 74 69 76 65 54 68 72 | long..A|ctiveThr|
|000003e0| 65 61 64 73 28 29 20 7b | 20 72 65 74 75 72 6e 20 |eads() {| return |
|000003f0| 54 6f 74 61 6c 54 68 72 | 65 61 64 73 28 29 20 2d |TotalThr|eads() -|
|00000400| 20 53 6c 65 65 70 69 6e | 67 54 68 72 65 61 64 73 | Sleepin|gThreads|
|00000410| 28 29 3b 20 7d 0d 09 0d | 70 72 69 76 61 74 65 3a |(); }...|private:|
|00000420| 0d 0d 09 45 78 63 65 70 | 74 69 6f 6e 53 74 61 74 |...Excep|tionStat|
|00000430| 65 09 66 45 78 63 65 70 | 74 69 6f 6e 53 74 61 63 |e.fExcep|tionStac|
|00000440| 6b 3b 0d 09 63 68 61 72 | 09 09 09 66 43 61 74 63 |k;..char|...fCatc|
|00000450| 68 42 75 66 66 65 72 5b | 43 41 54 43 48 5f 42 55 |hBuffer[|CATCH_BU|
|00000460| 46 53 49 5a 45 5d 3b 09 | 2f 2f 20 62 75 66 66 65 |FSIZE];.|// buffe|
|00000470| 72 20 66 6f 72 20 74 68 | 72 6f 77 6e 20 6f 62 6a |r for th|rown obj|
|00000480| 65 63 74 0d 0d 23 69 66 | 20 30 0d 23 69 66 20 5f |ect..#if| 0.#if _|
|00000490| 5f 4d 57 45 52 4b 53 5f | 5f 0d 09 76 6f 69 64 2a |_MWERKS_|_..void*|
|000004a0| 09 09 09 66 4c 6f 63 61 | 6c 44 65 73 74 72 75 63 |...fLoca|lDestruc|
|000004b0| 74 6f 72 43 68 61 69 6e | 3b 0d 23 65 6e 64 69 66 |torChain|;.#endif|
|000004c0| 0d 09 54 45 78 63 65 70 | 74 69 6f 6e 2a 09 09 66 |..TExcep|tion*..f|
|000004d0| 45 78 63 65 70 74 69 6f | 6e 53 74 61 63 6b 3b 0d |Exceptio|nStack;.|
|000004e0| 23 65 6e 64 69 66 0d 0d | 09 63 6f 6e 73 74 20 6c |#endif..|.const l|
|000004f0| 6f 6e 67 09 09 66 54 68 | 72 65 61 64 43 72 65 61 |ong..fTh|readCrea|
|00000500| 74 65 52 65 66 63 6f 6e | 3b 0d 09 42 6f 6f 6c 65 |teRefcon|;..Boole|
|00000510| 61 6e 09 09 09 66 53 6c | 65 65 70 69 6e 67 3b 0d |an...fSl|eeping;.|
|00000520| 7d 3b 0d 0d 23 65 6e 64 | 69 66 0d 00 00 00 00 00 |};..#end|if......|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000590| 00 00 04 39 19 42 61 63 | 6b 20 54 6f 20 46 75 74 |...9.Bac|k To Fut|
|000005a0| 75 72 65 73 20 28 69 73 | 73 2e 20 32 32 29 00 00 |ures (is|s. 22)..|
|000005b0| 0f 54 68 72 65 61 64 43 | 6f 6e 74 65 78 74 2e 68 |.ThreadC|ontext.h|
|000005c0| 02 00 00 00 54 45 58 54 | 43 57 49 45 01 00 00 14 |....TEXT|CWIE....|
|000005d0| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 14 00 60 |..TEXTCW|IE.....`|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 ab e5 a0 f7 00 00 | 04 ab 00 00 01 9a 69 6e |........|......in|
|00000600| 65 29 00 00 00 00 00 00 | 00 00 01 5c 25 00 00 00 |e)......|...\%...|
|00000610| 04 3e 10 64 65 76 65 6c | 6f 70 20 54 65 6d 70 6c |.>.devel|op Templ|
|00000620| 61 74 65 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |ate.....|........|
|00000630| 00 00 00 00 01 5e 25 00 | 00 00 04 44 00 00 00 00 |.....^%.|...D....|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 01 60 |........|.......`|
|00000660| 25 00 00 00 04 48 00 00 | 00 00 00 00 00 00 00 00 |%....H..|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000690| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006a0| 00 00 00 00 00 00 00 03 | 00 04 00 a0 00 18 02 f9 |........|........|
|000006b0| 02 77 00 a0 00 18 02 f9 | 02 77 ad 3e 93 e0 00 00 |.w......|.w.>....|
|000006c0| 04 94 00 00 04 94 00 00 | 00 00 01 00 00 00 00 04 |........|........|
|000006d0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|000006e0| 00 00 00 46 02 9b 35 e8 | 22 e4 00 00 00 1c 00 46 |...F..5.|"......F|
|000006f0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000700| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00000710| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00000720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+