[DEV] update some API

This commit is contained in:
Edouard DUPIN 2014-05-19 21:25:07 +02:00
parent 03336135d6
commit 63f50b54d4
2 changed files with 4 additions and 4 deletions

View File

@ -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),

View File

@ -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) {