|
|
@@ -351,7 +351,7 @@ static void mgr_process_fins(sp_ses_mgr_t *mgr, int epid, int svc_id, int conn_i
|
|
|
mgr_process_errs(mgr, epid, svc_id, conn_id, Error_PeerClose);
|
|
|
}
|
|
|
|
|
|
-static void __threadpool_mgr_process_conn(threadpool_t *threadpool, void *arg, int param1, int param2)
|
|
|
+static void __threadpool_mgr_process_conn(threadpool_t *threadpool, void *arg, param_size_t param1, param_size_t param2)
|
|
|
{
|
|
|
sp_ses_mgr_t *mgr = (sp_ses_mgr_t*)arg;
|
|
|
iobuffer_t *conn_pkt = (iobuffer_t*)param1;
|
|
|
@@ -454,7 +454,7 @@ static void mgr_process_conn(sp_ses_mgr_t *mgr, int epid, int svc_id, int conn_i
|
|
|
iobuffer_write_head(*conn_pkt, IOBUF_T_I4, &epid, 0);
|
|
|
|
|
|
sp_ses_mgr_inc_ref(mgr); // @
|
|
|
- err = threadpool_queue_workitem2(sp_svc_get_threadpool(mgr->svc), NULL, &__threadpool_mgr_process_conn, mgr, (int)*conn_pkt, 0);
|
|
|
+ err = threadpool_queue_workitem2(sp_svc_get_threadpool(mgr->svc), NULL, &__threadpool_mgr_process_conn, mgr, (param_size_t)*conn_pkt, 0);
|
|
|
if (err)
|
|
|
{
|
|
|
iobuffer_t *pkt = iobuffer_create(-1, -1);
|
|
|
@@ -834,12 +834,12 @@ static void uac_process_errs(sp_ses_uac_t *uac, int error)
|
|
|
uac_unlock(uac);
|
|
|
}
|
|
|
|
|
|
-static void __threadpool_uac_trigger_close(threadpool_t *threadpool, void *arg, int param1, int param2)
|
|
|
+static void __threadpool_uac_trigger_close(threadpool_t *threadpool, void *arg, param_size_t param1, param_size_t param2)
|
|
|
{
|
|
|
sp_ses_uac_t *uac = (sp_ses_uac_t*)arg;
|
|
|
sp_ses_mgr_t *mgr = uac->mgr;
|
|
|
|
|
|
- int error = param1;
|
|
|
+ int error = (int)param1;
|
|
|
sp_uid_t rsn = sp_svc_new_runserial(mgr->svc);
|
|
|
sp_rsn_context_t rsn_ctx;
|
|
|
sp_rsn_context_init_original(rsn, SP_ORIGINAL_T_FRAMEWORK, &rsn_ctx);
|
|
|
@@ -1479,11 +1479,11 @@ static void uas_process_errc(sp_ses_uas_t *uas, int error)
|
|
|
uas_trigger(uas, error);
|
|
|
}
|
|
|
|
|
|
-static void __threadpool_uas_trigger(threadpool_t *threadpool, void *arg, int param1, int param2)
|
|
|
+static void __threadpool_uas_trigger(threadpool_t *threadpool, void *arg, param_size_t param1, param_size_t param2)
|
|
|
{
|
|
|
sp_ses_uas_t *uas = (sp_ses_uas_t*)arg;
|
|
|
sp_ses_mgr_t *mgr = uas->mgr;
|
|
|
- int error = param1;
|
|
|
+ int error = (int)param1;
|
|
|
sp_uid_t rsn = sp_svc_new_runserial(mgr->svc);
|
|
|
sp_rsn_context_t rsn_ctx;
|
|
|
sp_rsn_context_init_original(rsn, SP_ORIGINAL_T_FRAMEWORK, &rsn_ctx);
|
|
|
@@ -1524,11 +1524,11 @@ static strand_t *uas_get_strand(sp_ses_uas_t *uas, int method_id)
|
|
|
return ms->strand;
|
|
|
}
|
|
|
|
|
|
-static void __threadpool_uas_process_info(threadpool_t *threadpool, void *arg, int param1, int param2)
|
|
|
+static void __threadpool_uas_process_info(threadpool_t *threadpool, void *arg, param_size_t param1, param_size_t param2)
|
|
|
{
|
|
|
sp_ses_uas_t *uas = (sp_ses_uas_t*)arg;
|
|
|
sp_ses_mgr_t *mgr = uas->mgr;
|
|
|
- int method_id = param1;
|
|
|
+ int method_id = (int)param1;
|
|
|
int method_sig;
|
|
|
iobuffer_t *info_pkt = (iobuffer_t*)param2;
|
|
|
|
|
|
@@ -1583,7 +1583,7 @@ static void uas_process_info(sp_ses_uas_t *uas, int method_id, int method_sig, i
|
|
|
strand_t *strand = uas_decide_strand(uas, method_id, overlap);
|
|
|
iobuffer_write_head(*info_pkt, IOBUF_T_I4, &method_sig, 0);
|
|
|
sp_ses_uas_inc_ref(uas); //@
|
|
|
- rc = threadpool_queue_workitem2(sp_svc_get_threadpool(uas->mgr->svc), strand, &__threadpool_uas_process_info, uas, method_id, (int)*info_pkt);
|
|
|
+ rc = threadpool_queue_workitem2(sp_svc_get_threadpool(uas->mgr->svc), strand, &__threadpool_uas_process_info, uas, method_id, (param_size_t)*info_pkt);
|
|
|
if (rc != 0) {
|
|
|
sp_dbg_warn("process info queue work item failed!");
|
|
|
sp_ses_uas_dec_ref(uas); //@
|
|
|
@@ -1611,11 +1611,11 @@ static void uas_process_req_reply_error(sp_ses_uas_t *uas, int tsx_id, int err)
|
|
|
iobuffer_dec_ref(ans_pkt);
|
|
|
}
|
|
|
|
|
|
-static void __threadpool_uas_process_req(threadpool_t *threadpool, void *arg, int param1, int param2)
|
|
|
+static void __threadpool_uas_process_req(threadpool_t *threadpool, void *arg, param_size_t param1, param_size_t param2)
|
|
|
{
|
|
|
sp_ses_uas_t *uas = (sp_ses_uas_t*)arg;
|
|
|
sp_ses_mgr_t *mgr = uas->mgr;
|
|
|
- int tsx_id = param1;
|
|
|
+ int tsx_id = (int)param1;
|
|
|
int method_id;
|
|
|
int method_sig;
|
|
|
int timeout;
|
|
|
@@ -1658,7 +1658,7 @@ static void uas_process_req(sp_ses_uas_t *uas, int tsx_id, int method_id, int me
|
|
|
iobuffer_write_head(*req_pkt, IOBUF_T_I4, &method_sig, 0);
|
|
|
iobuffer_write_head(*req_pkt, IOBUF_T_I4, &method_id, 0);
|
|
|
sp_ses_uas_inc_ref(uas); //@
|
|
|
- rc = threadpool_queue_workitem2(sp_svc_get_threadpool(uas->mgr->svc), strand, &__threadpool_uas_process_req, uas, tsx_id, (int)*req_pkt);
|
|
|
+ rc = threadpool_queue_workitem2(sp_svc_get_threadpool(uas->mgr->svc), strand, &__threadpool_uas_process_req, uas, tsx_id, (param_size_t)*req_pkt);
|
|
|
if (rc != 0) {
|
|
|
uas_process_req_reply_error(uas, tsx_id, rc);
|
|
|
sp_dbg_warn("process req queue work item failed!");
|