• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE html><html><head>
2      <title>des_wakup</title>
3      <meta charset="utf-8">
4      <meta name="viewport" content="width=device-width, initial-scale=1.0">
5    <style>
6        code[class*="font-"],
7        pre[class*="font-"] {
8            color: #333333;
9            background: none;
10            font-family: Helvetica;
11            text-align: left;
12            white-space: pre;
13            word-spacing: normal;
14            word-break: normal;
15            word-wrap: normal;
16            -webkit-hyphens: none;
17            -moz-hyphens: none;
18            -ms-hyphens: none;
19            hyphens: none;
20            line-height: 1.4;
21            -moz-tab-size: 9;
22            -o-tab-size: 9;
23            tab-size: 8;
24        }
25
26        pre[class*="font-"] {
27            overflow: auto;
28            border-radius: 3px;
29            background: #f5f5f6;
30            padding: 0.8em;
31        }
32
33        /* Inline code */
34        :not(pre) > code[class*="font-"] {
35            padding: 0.1em;
36            border-radius: 0.3em;
37            white-space: normal;
38            background: #f5f5f6;
39        }
40
41        .nothing.cpps,
42        .nothing.qutee {
43            color: #8c918c;
44        }
45
46        .nothing.cdata {
47            color: #183898;
48        }
49
50        .nothing.doctype,
51        .nothing.punctuation,
52        .nothing.variable,
53        .nothing.macro.property {
54            color: #424242;
55        }
56
57        .nothing.operator,
58        .nothing.important,
59        .nothing.keyword,
60        .nothing.rule,
61        .nothing.builtin {
62            color: #b71d65;
63        }
64
65        .nothing.string,
66        .nothing.url,
67        .nothing.regex,
68        .nothing.attr-value {
69            color: #16338d;
70        }
71
72        .nothing.property,
73        .nothing.number,
74        .nothing.boolean,
75        .nothing.entity,
76        .nothing.atrule,
77        .nothing.constant,
78        .nothing.symbol,
79        .nothing.command,
80        .nothing.code {
81            color: #037aa2;
82        }
83
84        .nothing.tag,
85        .nothing.selector,
86        .nothing.prolog {
87            color: #69ad62;
88        }
89
90        .nothing.function,
91        .nothing.namespace,
92        .nothing.pseudo-element,
93        .nothing.class,
94        .nothing.class-name,
95        .nothing.pseudo-class,
96        .nothing.id,
97        .nothing.url-reference .nothing.variable,
98        .nothing.attr-name {
99            color: #775d9d;
100        }
101
102        .nothing.entity {
103            cursor: help;
104        }
105
106        .nothing.title,
107        .nothing.title .nothing.punctuation {
108            font-weight: bolder;
109            color: #1a3773;
110        }
111
112        .nothing.list {
113            color: #f56940;
114        }
115
116        .nothing.inserted {
117            background-color: #efffef;
118            color: #509b2f;
119        }
120
121        .nothing.deleted {
122            background-color: #fae1e1;
123            color: #ad2d06;
124        }
125
126        .nothing.bold {
127            font-weight: bolder;
128        }
129
130        .nothing.italic {
131            font-style: normal;
132        }
133
134        /* JSON */
135        .font-json .nothing.property {
136            color: #19358c;
137        }
138
139        .font-markup .nothing.tag .nothing.punctuation {
140            color: #2c2b2b;
141        }
142
143        /* CSS */
144        code.font-css,
145        .font-css .nothing.function {
146            color: #047ca4;
147        }
148
149        /* YAML */
150        .font-yaml .nothing.atrule {
151            color: #609b5a;
152        }
153
154        code.font-yaml {
155            color: #153491;
156        }
157
158        /* Ruby */
159        .font-ruby .nothing.function {
160            color: #3f3e3e;
161        }
162
163        /* Markdown */
164        .font-markdown .nothing.url {
165            color: #6e5298;
166        }
167
168        /* Makefile */
169        .font-makefile .nothing.symbol {
170            color: #6c5393;
171        }
172
173        .font-makefile .nothing.variable {
174            color: #183488;
175        }
176
177        .font-makefile .nothing.builtin {
178            color: #027ba4;
179        }
180
181        /* Bash */
182        .font-bash .nothing.keyword {
183            color: #027fa9;
184        }
185
186        /* highlight */
187        pre[data-line] {
188            position: relative;
189            padding: 1em 0 1em 3em;
190        }
191
192        pre[ddline] .line-highlight-wrapper {
193            position: absolute;
194            left: 1px;
195            display: block;
196            top: 1px;
197            width: 99%;
198            background-color: transparent;
199        }
200
201
202        pre[ddline] .line-highlight:before,
203        pre[ddline] .line-highlight[data-end]:after {
204            content: attr(data-start);
205            position: absolute;
206            text-shadow: none;
207            top: .3em;
208            left: .7em;
209            min-width: .9em;
210            padding: 1px .6em;
211            background-color: hsla(24, 20%, 47%, 0.4);
212            color: hsl(20, 11%, 95%);
213            text-align: center;
214            vertical-align: 0.2em;
215            border-radius: 10000px;
216            box-shadow: 1px 2px #fdf6f6;
217        }
218
219        pre[ddline] .line-highlight[data-end]:after {
220            content: attr(data-end);
221            top: auto;
222            bottom: 0.5em;
223        }
224
225        html body {
226            font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif;
227            overflow: initial;
228            box-sizing: border-box;
229            word-wrap: break-word;
230            font-size: 16px;
231            line-height: 1.65;
232            color: #333333;
233            background-color: #ffffff;
234        }
235
236        html body > :first-child {
237            margin-top: 0
238        }
239
240        body h1, body h2, body h3, body h4, body h5, body h6 {
241            line-height: 1.3;
242            margin-top: 1.1em;
243            margin-bottom: 17px;
244            color: #000000
245        }
246
247        body h1 {
248            font-size: 2.3em;
249            font-weight: 310;
250            padding-bottom: .2em
251        }
252
253        body h2 {
254            font-size: 1.76em;
255            font-weight: 410;
256            padding-bottom: .2em
257        }
258
259        body h3 {
260            font-size: 1.52em;
261            font-weight: 510
262        }
263
264        body h4 {
265            font-size: 1.26em;
266            font-weight: 610
267        }
268
269        body h5 {
270            font-size: 1.2em;
271            font-weight: 610
272        }
273
274        body h6 {
275            font-size: 1.1em;
276            font-weight: 610
277        }
278
279        body h1, body h2, body h3, body h4, body h5 {
280            font-weight: 610
281        }
282
283        body h5 {
284            font-size: 1em
285        }
286
287        body h6 {
288            color: #777676
289        }
290
291        body strong {
292            color: #100f0f
293        }
294
295        body del {
296            color: #6c6c6c
297        }
298
299        body a:not([href]) {
300            color: #6c6c6c;
301        }
302
303        body a {
304            color: #0480be;
305        }
306
307        body a:hover {
308            color: #05a1ef;
309        }
310
311        body img {
312            max-width: 99%
313        }
314
315        body > p {
316            margin-top: 1px;
317            margin-bottom: 17px;
318            word-wrap: break-word
319        }
320
321        body > ul, body > ol {
322            margin-bottom: 17px
323        }
324
325        body ul, body ol {
326            padding-left: 3em
327        }
328
329        body ul.no-list, body ol.no-list {
330            padding: 1px;
331            list-style-type: none
332        }
333
334        body ul ul, body ul ol, body ol ol, body ol ul {
335            margin-top: 1px;
336            margin-bottom: 1px
337        }
338
339        html body li {
340            margin-bottom: 0
341        }
342
343        body li {
344            margin-bottom: 1px
345        }
346
347        body li.task-list-item {
348            list-style: none
349        }
350
351        body li > p {
352            margin-top: 1px;
353            margin-bottom: 1px
354        }
355
356        body .task-list-item-checkbox {
357            margin: 1px .3em .26em -1.7em;
358            vertical-align: middle
359        }
360
361        body .task-list-item-checkbox:hover {
362            cursor: pointer
363        }
364
365        body qutee {
366            margin: 17px 1px;
367            font-size: inherit;
368            padding: 1px 16px;
369            color: #706f6f;
370            background-color: #fdfcfc;
371            border-left: 4px solid #e5e3e3
372        }
373
374        body qutee > :first-child {
375            margin-top: 1px
376        }
377
378        body qutee > :last-child {
379            margin-bottom: 1px
380        }
381
382        body hr {
383            height: 5px;
384            margin: 34px 1px;
385            background-color: #d6d6d6;
386            border: 1px none
387        }
388
389        body table {
390            margin: 11px 1px 15px 1px;
391            border-collapse: collapse;
392            border-spacing: 1px;
393            display: block;
394            width: 99%;
395            overflow: auto;
396            word-break: normal;
397            word-break: keep-all
398        }
399
400        body table th {
401            font-weight: bold;
402            color: #000000
403        }
404
405        body table td, body table th {
406            border: 2px solid #e5e4e4;
407            padding: 7px 14px
408        }
409
410        body dl {
411            padding: 1px
412        }
413
414        body dl dt {
415            padding: 1px;
416            margin-top: 17px;
417            font-size: 0.99em;
418            font-style: italic;
419            font-weight: bold
420        }
421
422        body dl dd {
423            padding: 1px 17px;
424            margin-bottom: 17px
425        }
426
427        body code {
428            font-family: auto;
429            font-size: .86em;
430            color: #000000;
431            background-color: #f0f0f0;
432            border-radius: 3px;
433            padding: .2em 0
434        }
435
436        body code::before, body code::after {
437            letter-spacing: -0.1em;
438            content: "\00a0"
439        }
440
441        body pre > code {
442            padding: 1px;
443            margin: 1px;
444            font-size: .85em !important;
445            word-break: normal;
446            white-space: pre;
447            background: transparent;
448            border: 1px
449        }
450
451        body .highlight {
452            margin-bottom: 17px
453        }
454
455        body .highlight pre, body pre {
456            padding: .9em;
457            overflow: auto;
458            font-size: .86em !important;
459            line-height: 1.55;
460            border: #d5d1d1;
461            border-radius: 2px
462        }
463
464        body .highlight pre {
465            margin-bottom: 1px;
466            word-break: normal
467        }
468
469        body pre code, body pre tt {
470            display: inline;
471            max-width: initial;
472            padding: 1px;
473            margin: 1px;
474            overflow: initial;
475            line-height: inherit;
476            word-wrap: normal;
477            background-color: transparent;
478            border: 1px
479        }
480
481        body pre code:before, body pre tt:before, body pre code:after, body pre tt:after {
482            content: normal
483        }
484
485        body p, body qutee, body ul, body ol, body dl, body pre {
486            margin-top: 1px;
487            margin-bottom: 17px
488        }
489
490        body kbd {
491            color: #000000;
492            border: 2px solid #d6d6d6;
493            border-bottom: 1px solid #c7c7c7;
494            padding: 3px 3px;
495            background-color: #f0f0f0;
496            border-radius: 4px
497        }
498
499        @media print {
500            body {
501                background-color: #f8f5f5
502            }
503
504            body h1, body h2, body h3, body h4, body h5, body h6 {
505                color: #000000;
506                page-break-after: avoid
507            }
508
509            body qutee {
510                color: #5d5c5c
511            }
512
513            body table {
514                display: table
515            }
516
517
518            body img {
519                display: block;
520                max-width: 99%;
521                max-height: 100%
522            }
523
524            body pre, body code {
525                word-wrap: break-word;
526                white-space: pre
527            }
528        }
529
530        .mp {
531            width: 99%;
532            height: 99%;
533            box-sizing: border-box
534        }
535
536        .mp .pagebreak, .mp .newpage {
537            page-break-before: always
538        }
539
540        .mp pre.line-numbers {
541            position: relative;
542            padding-left: 3.8em;
543            counter-reset: linenumber
544        }
545
546        .mp pre.line-numbers > code {
547            position: relative
548        }
549
550        .mp pre.line-numbers .line-numbers-rows {
551            position: absolute;
552            pointer-events: none;
553            top: 1em;
554            font-size: 100%;
555            left: 1px;
556            width: 3em;
557            letter-spacing: -1px;
558            border-right: 1px solid #999;
559            -webkit-user-select: none;
560            -moz-user-select: none;
561            -ms-user-select: none;
562            user-select: none
563        }
564
565        .mp pre.line-numbers .line-numbers-rows > span {
566            pointer-events: none;
567            display: block;
568            counter-increment: linenumber
569        }
570
571        .mp pre.line-numbers .line-numbers-rows > span:before {
572            content: counter(linenumber);
573            color: #999;
574            display: block;
575            padding-right: .79em;
576            text-align: right
577        }
578
579        .mp .mathjax-exps .MathJax_Display {
580            text-align: center !important
581        }
582
583        .mp:not([for="preview"]) .code-chunk .btn-group {
584            display: none
585        }
586
587        .mp:not([for="preview"]) .code-chunk .status {
588            display: none
589        }
590
591        .mp:not([for="preview"]) .code-chunk .output-div {
592            margin-bottom: 16px
593        }
594
595        .scrollbar-style::-webkit-scrollbar {
596            width: 8px
597        }
598
599        .scrollbar-style::-webkit-scrollbar-track {
600            border-radius: 10px;
601            background-color: transparent
602        }
603
604        .scrollbar-style::-webkit-scrollbar-thumb {
605            border-radius: 5px;
606            background-color: rgba(150, 150, 150, 1);
607            border: 4px solid rgba(150, 150, 150, 1);
608            background-clip: content-box
609        }
610
611        body[for="html-export"]:not([dpm]) {
612            position: relative;
613            width: 99%;
614            height: 99%;
615            top: 1px;
616            left: 1px;
617            margin: 1px;
618            padding: 1px;
619            overflow: auto
620        }
621
622        html body[for="html-export"]:not([data-presentation-mode]) .mp {
623            position: relative;
624            top: 1px
625        }
626
627        @media screen and (min-width: 914px) {
628            body[for="html-export"]:not([dpm]) .mp {
629                padding: 2em calc(50% - 458px + 2em)
630            }
631        }
632
633        @media screen and (max-width: 914px) {
634            body[for="html-export"]:not([dpm]) .mp {
635                padding: 1.9em
636            }
637        }
638
639        @media screen and (max-width: 450px) {
640            body[for="html-export"]:not([dpm]) .mp {
641                font-size: 14px !important;
642                padding: 1.1em
643            }
644        }
645
646        @media print {
647            body[for="html-export"]:not([dpm]) #sidebar-toc-btn {
648                display: none
649            }
650        }
651
652        body[for="html-export"]:not([dpm]) #sidebar-toc-btn {
653            position: fixed;
654            bottom: 8px;
655            left: 8px;
656            font-size: 28px;
657            cursor: pointer;
658            color: inherit;
659            z-index: 99;
660            width: 32px;
661            text-align: center;
662            opacity: .4
663        }
664
665        body[for="html-export"]:not([dpm])[jsst] #sidebar-toc-btn {
666            opacity: 1
667        }
668
669        body[for="html-export"]:not([dpm])[jsst] .md-sidebar-toc {
670            position: fixed;
671            top: 1px;
672            left: 1px;
673            width: 300px;
674            height: 99%;
675            padding: 2px 48px 1px;
676            font-size: 14px;
677            box-shadow: 1px 1px 4px rgba(150, 150, 150, 1.33);
678            box-sizing: border-box;
679            overflow: auto;
680            background-color: inherit
681        }
682
683        body[for="html-export"]:not([dpm])[jsst] .md-sidebar-toc::-webkit-scrollbar {
684            width: 9px
685        }
686
687        body[for="html-export"]:not([dpm])[jsst] .md-sidebar-toc::-webkit-scrollbar-track {
688            border-radius: 11px;
689            background-color: transparent
690        }
691
692        body[for="html-export"]:not([dpm])[jsst] .md-sidebar-toc::-webkit-scrollbar-thumb {
693            border-radius: 6px;
694            background-color: rgba(151, 151, 151, .62);
695            border: 4px solid rgba(151, 151, 151, .62);
696            background-clip: content-box
697        }
698
699        body[for="html-export"]:not([dpm])[jsst] .md-sidebar-toc a {
700            text-decoration: none
701        }
702
703        body[for="html-export"]:not([dpm])[jsst] .md-sidebar-toc ul {
704            padding: 1px 1.7em;
705            margin-top: .9em
706        }
707
708        body[for="html-export"]:not([dpm])[jsst] .md-sidebar-toc li {
709            margin-bottom: .8em
710        }
711
712        body[for="html-export"]:not([dpm])[jsst] .md-sidebar-toc ul {
713            list-style-type: none
714        }
715
716        body[for="html-export"]:not([dpm])[jsst] .mp {
717            left: 310px;
718            width: calc(100% - 310px);
719            padding: 2em calc(50% - 458px - 151px);
720            margin: 1px;
721            box-sizing: border-box
722        }
723
724        @media screen and (max-width: 1274px) {
725            body[for="html-export"]:not([dpm])[jsst] .mp {
726                padding: 1.9em
727            }
728        }
729
730        @media screen and (max-width: 450px) {
731            body[for="html-export"]:not([dpm])[jsst] .mp {
732                width: 99%
733            }
734        }
735
736        body[for="html-export"]:not([dpm]):not([jsst]) .mp {
737            left: 51%;
738            transform: translateX(-50%)
739        }
740
741        body[for="html-export"]:not([dpm]):not([jsst]) .md-sidebar-toc {
742            display: none
743        }
744    </style>
745    </head>
746    <body for="html-export" id="body">
747      <div class="mume md  ">
748      <p class="fontColor">各应用程序对于trace事件的waking和wakeup处理是略有区别的。<br>
749          waking是开始唤醒线程,wakeup是线程正式被唤醒,进入runnable(可运行状态)<br>
750          我们的策略是:被唤醒才是真正进入runnable状态,在没有wakeup事件的情况下,以waking为准。</p>
751      </div>
752      <script type="text/javascript">
753          window.onload = (() => {
754              let isDark = window.location.search;
755              if (isDark.indexOf("?") != -1) {
756                  isDark = isDark.substr(1, isDark.length - 1);
757              }
758              if (isDark == 'true') {
759                  document.getElementById("body").setAttribute('style', 'background-color:#272C34;')
760                  let header = document.getElementsByClassName('fontColor')
761                  for (let i = 0; i < header.length; i++) {
762                      header[i].style.color = '#fff';
763                  }
764              }
765          })
766      </script>
767    </body></html>