OLD | NEW |
---|---|
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 3588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3599 | 3599 |
3600 /** | 3600 /** |
3601 * Returns whether or not the locker for a given isolate, or default isolate i f NULL is given, | 3601 * Returns whether or not the locker for a given isolate, or default isolate i f NULL is given, |
3602 * is locked by the current thread. | 3602 * is locked by the current thread. |
3603 */ | 3603 */ |
3604 static bool IsLocked(Isolate* isolate = NULL); | 3604 static bool IsLocked(Isolate* isolate = NULL); |
3605 | 3605 |
3606 /** | 3606 /** |
3607 * Returns whether v8::Locker is being used by this V8 instance. | 3607 * Returns whether v8::Locker is being used by this V8 instance. |
3608 */ | 3608 */ |
3609 static bool IsActive() { return active_; } | 3609 static bool IsActive(); |
Yang
2011/08/05 16:14:12
Moving the implementation to v8threads.cc seems to
| |
3610 | 3610 |
3611 private: | 3611 private: |
3612 bool has_lock_; | 3612 bool has_lock_; |
3613 bool top_level_; | 3613 bool top_level_; |
3614 internal::Isolate* isolate_; | 3614 internal::Isolate* isolate_; |
3615 | 3615 |
3616 static bool active_; | 3616 static bool active_; |
3617 | 3617 |
3618 // Disallow copying and assigning. | 3618 // Disallow copying and assigning. |
3619 Locker(const Locker&); | 3619 Locker(const Locker&); |
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4201 | 4201 |
4202 | 4202 |
4203 } // namespace v8 | 4203 } // namespace v8 |
4204 | 4204 |
4205 | 4205 |
4206 #undef V8EXPORT | 4206 #undef V8EXPORT |
4207 #undef TYPE_CHECK | 4207 #undef TYPE_CHECK |
4208 | 4208 |
4209 | 4209 |
4210 #endif // V8_H_ | 4210 #endif // V8_H_ |
OLD | NEW |