Skip to content

Commit 3207776

Browse files
committed
Merge branch 'tim/core_is_send' into 'master'
Core can impl Send+Sync See merge request TankerHQ/sdk-rust!65
2 parents f427fe9 + 76c82ab commit 3207776

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/core.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ pub struct Core {
1010
ctanker: ctanker::CTankerPtr,
1111
}
1212

13+
// SAFETY: ctanker is thread-safe
14+
unsafe impl Send for Core {}
15+
unsafe impl Sync for Core {}
16+
1317
impl Core {
1418
/// Creates a Tanker Core session with [Status](enum.Status.html) `Stopped`.
1519
///

0 commit comments

Comments
 (0)