Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 540 } | 540 } |
| 541 }; | 541 }; |
| 542 | 542 |
| 543 template<> class ThreadStateFor<AnyThread> { | 543 template<> class ThreadStateFor<AnyThread> { |
| 544 public: | 544 public: |
| 545 static ThreadState* state() { return ThreadState::current(); } | 545 static ThreadState* state() { return ThreadState::current(); } |
| 546 }; | 546 }; |
| 547 | 547 |
| 548 // FIXME: Experiment if the threading affinity really matters for performance. | 548 // FIXME: Experiment if the threading affinity really matters for performance. |
| 549 // FIXME: Move these macros and other related structures to a separate file. | 549 // FIXME: Move these macros and other related structures to a separate file. |
| 550 USED_FROM_MULTIPLE_THREADS(Algorithm); | 550 USED_FROM_MULTIPLE_THREADS(KeyAlgorithm); |
|
haraken
2014/02/25 09:15:46
Nit: Alphabetical order please?
eroman
2014/02/26 01:37:36
Done.
| |
| 551 USED_FROM_MULTIPLE_THREADS(Crypto); | 551 USED_FROM_MULTIPLE_THREADS(Crypto); |
| 552 USED_FROM_MULTIPLE_THREADS(DOMParser); | 552 USED_FROM_MULTIPLE_THREADS(DOMParser); |
| 553 USED_FROM_MULTIPLE_THREADS(DOMURL); | 553 USED_FROM_MULTIPLE_THREADS(DOMURL); |
| 554 USED_FROM_MULTIPLE_THREADS(DeprecatedStorageQuota); | 554 USED_FROM_MULTIPLE_THREADS(DeprecatedStorageQuota); |
| 555 USED_FROM_MULTIPLE_THREADS(Key); | 555 USED_FROM_MULTIPLE_THREADS(Key); |
| 556 USED_FROM_MULTIPLE_THREADS(KeyPair); | 556 USED_FROM_MULTIPLE_THREADS(KeyPair); |
| 557 USED_FROM_MULTIPLE_THREADS(MemoryInfo); | 557 USED_FROM_MULTIPLE_THREADS(MemoryInfo); |
| 558 USED_FROM_MULTIPLE_THREADS(Notification); | 558 USED_FROM_MULTIPLE_THREADS(Notification); |
| 559 USED_FROM_MULTIPLE_THREADS(NotificationCenter); | 559 USED_FROM_MULTIPLE_THREADS(NotificationCenter); |
| 560 USED_FROM_MULTIPLE_THREADS(Performance); | 560 USED_FROM_MULTIPLE_THREADS(Performance); |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 574 USED_FROM_MULTIPLE_THREADS(XMLSerializer); | 574 USED_FROM_MULTIPLE_THREADS(XMLSerializer); |
| 575 USED_FROM_MULTIPLE_THREADS(XPathEvaluator); | 575 USED_FROM_MULTIPLE_THREADS(XPathEvaluator); |
| 576 USED_FROM_MULTIPLE_THREADS(XPathExpression); | 576 USED_FROM_MULTIPLE_THREADS(XPathExpression); |
| 577 USED_FROM_MULTIPLE_THREADS(XPathNSResolver); | 577 USED_FROM_MULTIPLE_THREADS(XPathNSResolver); |
| 578 USED_FROM_MULTIPLE_THREADS(XPathResult); | 578 USED_FROM_MULTIPLE_THREADS(XPathResult); |
| 579 USED_FROM_MULTIPLE_THREADS(XSLTProcessor); | 579 USED_FROM_MULTIPLE_THREADS(XSLTProcessor); |
| 580 | 580 |
| 581 } | 581 } |
| 582 | 582 |
| 583 #endif // ThreadState_h | 583 #endif // ThreadState_h |
| OLD | NEW |