-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2688 from romanvm/script.module.web-pdb@matrix
[script.module.web-pdb@matrix] 1.6.3
- Loading branch information
Showing
9 changed files
with
215 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Author: Roman Miroshnychenko aka Roman V.M. | ||
# E-mail: [email protected] | ||
# | ||
# Copyright (c) 2016 Roman Miroshnychenko | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to deal | ||
# in the Software without restriction, including without limitation the rights | ||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
# copies of the Software, and to permit persons to whom the Software is | ||
# furnished to do so, subject to the following conditions: | ||
# | ||
# The above copyright notice and this permission notice shall be included in | ||
# all copies or substantial portions of the Software. | ||
# | ||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
# THE SOFTWARE. | ||
|
||
from threading import RLock | ||
|
||
__all__ = ['ThreadSafeBuffer'] | ||
|
||
|
||
class ThreadSafeBuffer: | ||
""" | ||
A buffer for data exchange between threads | ||
""" | ||
def __init__(self, contents=None): | ||
self._lock = RLock() | ||
self._contents = contents | ||
self._is_dirty = contents is not None | ||
|
||
@property | ||
def is_dirty(self): | ||
"""Indicates whether a buffer contains unread data""" | ||
with self._lock: | ||
return self._is_dirty | ||
|
||
@property | ||
def contents(self): | ||
"""Get or set buffer contents""" | ||
with self._lock: | ||
self._is_dirty = False | ||
return self._contents | ||
|
||
@contents.setter | ||
def contents(self, value): | ||
with self._lock: | ||
self._contents = value | ||
self._is_dirty = True |
Large diffs are not rendered by default.
Oops, something went wrong.
39 changes: 39 additions & 0 deletions
39
script.module.web-pdb/libs/web_pdb/static/bundle.min.js.LICENSE.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/*! | ||
* Bootstrap v3.4.1 (https://getbootstrap.com/) | ||
* Copyright 2011-2019 Twitter, Inc. | ||
* Licensed under the MIT license | ||
*/ | ||
|
||
/*! | ||
* Sizzle CSS Selector Engine v2.3.6 | ||
* https://sizzlejs.com/ | ||
* | ||
* Copyright JS Foundation and other contributors | ||
* Released under the MIT license | ||
* https://js.foundation/ | ||
* | ||
* Date: 2021-02-16 | ||
*/ | ||
|
||
/*! | ||
* jQuery JavaScript Library v3.6.0 | ||
* https://jquery.com/ | ||
* | ||
* Includes Sizzle.js | ||
* https://sizzlejs.com/ | ||
* | ||
* Copyright OpenJS Foundation and other contributors | ||
* Released under the MIT license | ||
* https://jquery.org/license | ||
* | ||
* Date: 2021-03-02T17:08Z | ||
*/ | ||
|
||
/** | ||
* Prism: Lightweight, robust, elegant syntax highlighting | ||
* | ||
* @license MIT <https://opensource.org/licenses/MIT> | ||
* @author Lea Verou <https://lea.verou.me> | ||
* @namespace | ||
* @public | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
44d15b3f2f94eb4fd016f539d421d9e052a55e77dce513ba1d3ec3fe73a1084a bundle.min.js | ||
00f4d0c2e5e9ace53fd0c8e6aa27e5fb55d9fd57b0a0bb03e06c81ea705ccc35 *bundle.min.js |
190 changes: 108 additions & 82 deletions
190
script.module.web-pdb/libs/web_pdb/static/styles.min.css
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
script.module.web-pdb/libs/web_pdb/static/styles.min.css.sha256
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
c69f3afa25647e7eeb45402621a59f83d3007005fb4c54f27a19f58e4358058a styles.min.css | ||
71ffc923fa5b013c1450597ae0a3443f79c26fc38f21ed7aab7b287ec883e5dd *styles.min.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters