You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/magic.lambda.sqlite/magic.lambda.sqlite/LoadExtension.cs
+20-10Lines changed: 20 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,13 @@
2
2
* Magic Cloud, copyright (c) 2023 Thomas Hansen. See the attached LICENSE file for details. For license inquiries you can send an email to thomas@ainiro.io
3
3
*/
4
4
5
+
usingSystem.Linq;
5
6
usingSystem.Threading.Tasks;
6
7
usingmagic.node;
8
+
usingmagic.node.extensions;
7
9
usingmagic.signals.contracts;
8
-
usingmagic.data.common.helpers;
9
10
usingmagic.lambda.sqlite.helpers;
10
-
usingmagic.node.extensions;
11
-
usingSystem.Linq;
11
+
usingSystem.Threading;
12
12
13
13
namespacemagic.lambda.sqlite
14
14
{
@@ -18,6 +18,9 @@ namespace magic.lambda.sqlite
18
18
[Slot(Name="sqlite.load-extension")]
19
19
publicclassLoadExtension:ISlotAsync
20
20
{
21
+
// Ensuring synchronized access.
22
+
readonlystaticSemaphoreSlim_semaphore=new(1,1);
23
+
21
24
/// <summary>
22
25
/// Handles the signal for the class.
23
26
/// </summary>
@@ -26,13 +29,20 @@ public class LoadExtension : ISlotAsync
0 commit comments