[DEV] update some API
This commit is contained in:
parent
03336135d6
commit
63f50b54d4
@ -84,7 +84,7 @@ void ewol::Object::removeObject() {
|
||||
autoDestroy();
|
||||
}
|
||||
|
||||
void respownObject() {
|
||||
void ewol::Object::respownObject() {
|
||||
std::unique_lock<std::mutex> lock(m_lockRefCount);
|
||||
if (m_isDestroyed == false) {
|
||||
EWOL_WARNING("Respawn an alive object");
|
||||
@ -94,9 +94,6 @@ void respownObject() {
|
||||
getObjectManager().autoRespown(this);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
ewol::Object::Object() :
|
||||
m_objRefCount(1),
|
||||
m_hasReferenceOwner(false),
|
||||
|
@ -102,6 +102,9 @@ namespace ewol {
|
||||
operator ewol::object::Owner<T>() const noexcept {
|
||||
return m_pointer;
|
||||
}
|
||||
template<typename T2> operator ewol::object::Shared<T2>() const noexcept {
|
||||
return m_pointer;
|
||||
}
|
||||
};
|
||||
// after calling this function, you might never call a delete on this pointer. (if you want to be able to use a delete, simply Shared<>(pointer)
|
||||
template<typename T> Shared<T> makeShared(T* _pointer) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user