@@ -16,7 +16,7 @@ logs::channel sys_cond("sys_cond", logs::level::notice);
16
16
17
17
extern u64 get_system_time ();
18
18
19
- void lv2_cond_t ::notify (lv2_lock_t , cpu_thread* thread)
19
+ void lv2_cond ::notify (lv2_lock_t , cpu_thread* thread)
20
20
{
21
21
if (mutex->owner )
22
22
{
@@ -36,7 +36,7 @@ s32 sys_cond_create(vm::ptr<u32> cond_id, u32 mutex_id, vm::ptr<sys_cond_attribu
36
36
37
37
LV2_LOCK;
38
38
39
- const auto mutex = idm::get<lv2_mutex_t >(mutex_id);
39
+ const auto mutex = idm::get<lv2_obj, lv2_mutex >(mutex_id);
40
40
41
41
if (!mutex)
42
42
{
@@ -54,7 +54,7 @@ s32 sys_cond_create(vm::ptr<u32> cond_id, u32 mutex_id, vm::ptr<sys_cond_attribu
54
54
fmt::throw_exception (" Unexpected cond_count" HERE);
55
55
}
56
56
57
- *cond_id = idm::make<lv2_cond_t >(mutex, attr->name_u64 );
57
+ *cond_id = idm::make<lv2_obj, lv2_cond >(mutex, attr->name_u64 );
58
58
59
59
return CELL_OK;
60
60
}
@@ -65,7 +65,7 @@ s32 sys_cond_destroy(u32 cond_id)
65
65
66
66
LV2_LOCK;
67
67
68
- const auto cond = idm::get<lv2_cond_t >(cond_id);
68
+ const auto cond = idm::get<lv2_obj, lv2_cond >(cond_id);
69
69
70
70
if (!cond)
71
71
{
@@ -82,7 +82,7 @@ s32 sys_cond_destroy(u32 cond_id)
82
82
fmt::throw_exception (" Unexpected cond_count" HERE);
83
83
}
84
84
85
- idm::remove <lv2_cond_t >(cond_id);
85
+ idm::remove <lv2_obj, lv2_cond >(cond_id);
86
86
87
87
return CELL_OK;
88
88
}
@@ -93,7 +93,7 @@ s32 sys_cond_signal(u32 cond_id)
93
93
94
94
LV2_LOCK;
95
95
96
- const auto cond = idm::get<lv2_cond_t >(cond_id);
96
+ const auto cond = idm::get<lv2_obj, lv2_cond >(cond_id);
97
97
98
98
if (!cond)
99
99
{
@@ -116,7 +116,7 @@ s32 sys_cond_signal_all(u32 cond_id)
116
116
117
117
LV2_LOCK;
118
118
119
- const auto cond = idm::get<lv2_cond_t >(cond_id);
119
+ const auto cond = idm::get<lv2_obj, lv2_cond >(cond_id);
120
120
121
121
if (!cond)
122
122
{
@@ -140,7 +140,7 @@ s32 sys_cond_signal_to(u32 cond_id, u32 thread_id)
140
140
141
141
LV2_LOCK;
142
142
143
- const auto cond = idm::get<lv2_cond_t >(cond_id);
143
+ const auto cond = idm::get<lv2_obj, lv2_cond >(cond_id);
144
144
145
145
if (!cond)
146
146
{
@@ -173,7 +173,7 @@ s32 sys_cond_wait(ppu_thread& ppu, u32 cond_id, u64 timeout)
173
173
174
174
LV2_LOCK;
175
175
176
- const auto cond = idm::get<lv2_cond_t >(cond_id);
176
+ const auto cond = idm::get<lv2_obj, lv2_cond >(cond_id);
177
177
178
178
if (!cond)
179
179
{
0 commit comments