Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
opendht
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
opendht
Commits
ae2a1d83
Commit
ae2a1d83
authored
1 year ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
python: use shared_ptr, make_shared from Cython
parent
bad8bdfe
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/opendht_cpp.pxd
+1
-10
1 addition, 10 deletions
python/opendht_cpp.pxd
with
1 addition
and
10 deletions
python/opendht_cpp.pxd
+
1
−
10
View file @
ae2a1d83
...
@@ -21,6 +21,7 @@ from libcpp.string cimport string
...
@@ -21,6 +21,7 @@ from libcpp.string cimport string
from
libcpp.vector
cimport
vector
from
libcpp.vector
cimport
vector
from
libcpp.utility
cimport
pair
from
libcpp.utility
cimport
pair
from
libcpp.map
cimport
map
from
libcpp.map
cimport
map
from
libcpp.memory
cimport
shared_ptr
,
make_shared
from
libc.string
cimport
const_char
,
const_uchar
from
libc.string
cimport
const_char
,
const_uchar
ctypedef
uint16_t
in_port_t
ctypedef
uint16_t
in_port_t
...
@@ -34,16 +35,6 @@ cdef extern from "<chrono>" namespace "std::chrono" nogil:
...
@@ -34,16 +35,6 @@ cdef extern from "<chrono>" namespace "std::chrono" nogil:
duration
seconds
(
uint64_t
)
except
+
duration
seconds
(
uint64_t
)
except
+
duration
seconds
()
duration
seconds
()
cdef
extern
from
"
<memory>
"
namespace
"
std
"
nogil
:
cdef
cppclass
shared_ptr
[
T
]:
shared_ptr
()
except
+
shared_ptr
(
T
*
)
except
+
T
*
get
()
T
operator
*
()
bool
operator
bool
()
const
void
reset
(
T
*
)
shared_ptr
[
T
]
make_shared
[
T
](...)
except
+
cdef
extern
from
"
<functional>
"
namespace
"
std
"
nogil
:
cdef
extern
from
"
<functional>
"
namespace
"
std
"
nogil
:
cdef
cppclass
hash
[
T
]:
cdef
cppclass
hash
[
T
]:
hash
()
except
+
hash
()
except
+
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment