Skip to content

Commit

Permalink
Bump version of ffi crate (#2130)
Browse files Browse the repository at this point in the history
  • Loading branch information
raviqqe authored Sep 1, 2023
1 parent ede1446 commit bb8c4f0
Show file tree
Hide file tree
Showing 16 changed files with 90 additions and 92 deletions.
27 changes: 13 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions cmd/test/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/ffi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "pen-ffi"
description = "FFI library for Pen programming language"
version = "0.10.17"
version = "0.10.21"
publish = true
edition = "2021"
license = "MIT"
Expand Down
7 changes: 3 additions & 4 deletions lib/ffi/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ use error::RuntimeError;
use std::sync::RwLock;
use tokio::runtime::Handle;

#[no_mangle]
static _PEN_FFI_RUNTIME_HANDLE: RwLock<Option<tokio::runtime::Handle>> = RwLock::new(None);
static RUNTIME_HANDLE: RwLock<Option<tokio::runtime::Handle>> = RwLock::new(None);

pub fn set_handle(handle: Handle) -> Result<(), Error> {
_PEN_FFI_RUNTIME_HANDLE
RUNTIME_HANDLE
.write()
.map_err(|_| RuntimeError::HandleLockPoisoned)?
.replace(handle);
Expand All @@ -18,7 +17,7 @@ pub fn set_handle(handle: Handle) -> Result<(), Error> {
}

pub fn handle() -> Result<Handle, Error> {
let guard = _PEN_FFI_RUNTIME_HANDLE.read()?;
let guard = RUNTIME_HANDLE.read()?;

if let Some(handle) = guard.as_ref() {
Ok(handle.clone())
Expand Down
8 changes: 4 additions & 4 deletions packages/core/ffi/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions packages/html/ffi/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions packages/http/ffi/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions packages/json/ffi/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions packages/os-sync/ffi/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions packages/os/ffi/application/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions packages/os/ffi/library/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions packages/prelude/ffi/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions packages/random/ffi/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions packages/regex/ffi/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bb8c4f0

Please sign in to comment.