Skip to content

Commit 107b5af

Browse files
committed
Implement Send and Sync for Status
Fixes tensorflow#224
1 parent dc20fa5 commit 107b5af

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,9 @@ impl_new!(
404404
);
405405
impl_drop!(Status, TF_DeleteStatus);
406406

407+
unsafe impl Send for Status {}
408+
unsafe impl Sync for Status {}
409+
407410
impl Status {
408411
/// Creates a status and sets its code and message.
409412
pub fn new_set(code: Code, msg: &str) -> std::result::Result<Status, NulError> {

0 commit comments

Comments
 (0)