mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-28 01:52:29 -06:00
Correctly register AddressArbiter as a type of WakeupCallback
This commit is contained in:
parent
7af4b1a18e
commit
f5b23eff4b
1 changed files with 5 additions and 0 deletions
|
@ -11,6 +11,7 @@
|
||||||
#include <boost/serialization/shared_ptr.hpp>
|
#include <boost/serialization/shared_ptr.hpp>
|
||||||
#include <boost/serialization/string.hpp>
|
#include <boost/serialization/string.hpp>
|
||||||
#include <boost/serialization/vector.hpp>
|
#include <boost/serialization/vector.hpp>
|
||||||
|
#include <boost/serialization/version.hpp>
|
||||||
#include "common/common_types.h"
|
#include "common/common_types.h"
|
||||||
#include "core/hle/kernel/object.h"
|
#include "core/hle/kernel/object.h"
|
||||||
#include "core/hle/kernel/thread.h"
|
#include "core/hle/kernel/thread.h"
|
||||||
|
@ -81,6 +82,9 @@ private:
|
||||||
template <class Archive>
|
template <class Archive>
|
||||||
void serialize(Archive& ar, const unsigned int file_version) {
|
void serialize(Archive& ar, const unsigned int file_version) {
|
||||||
ar& boost::serialization::base_object<Object>(*this);
|
ar& boost::serialization::base_object<Object>(*this);
|
||||||
|
if (file_version > 0) {
|
||||||
|
ar& boost::serialization::base_object<WakeupCallback>(*this);
|
||||||
|
}
|
||||||
ar& name;
|
ar& name;
|
||||||
ar& waiting_threads;
|
ar& waiting_threads;
|
||||||
}
|
}
|
||||||
|
@ -89,4 +93,5 @@ private:
|
||||||
} // namespace Kernel
|
} // namespace Kernel
|
||||||
|
|
||||||
BOOST_CLASS_EXPORT_KEY(Kernel::AddressArbiter)
|
BOOST_CLASS_EXPORT_KEY(Kernel::AddressArbiter)
|
||||||
|
BOOST_CLASS_VERSION(Kernel::AddressArbiter, 1)
|
||||||
CONSTRUCT_KERNEL_OBJECT(Kernel::AddressArbiter)
|
CONSTRUCT_KERNEL_OBJECT(Kernel::AddressArbiter)
|
||||||
|
|
Loading…
Reference in a new issue