this api is used intead of setting the BUFMGR_LOCK_TYPE env variables.
Change-Id: I20f0b33663293d7c810027877f993eb2edcf7ecd
return bufmgr;
}
+int
+tbm_bufmgr_set_bo_lock_type(tbm_bufmgr bufmgr, tbm_bufmgr_bo_lock_type bo_lock_type)
+{
+ TBM_BUFMGR_RETURN_VAL_IF_FAIL(TBM_BUFMGR_IS_VALID(gBufMgr), 0);
+ TBM_BUFMGR_RETURN_VAL_IF_FAIL(bufmgr == gBufMgr, 0);
+
+ gBufMgr->bo_lock_type = bo_lock_type;
+
+ TBM_LOG_I("The bo_lock_type of the bo is %d\n", bo_lock_type);
+
+ return 1;
+}
+
+
int tbm_bufmgr_get_fd_limit(void)
{
struct rlimit lim;
*/
tbm_bufmgr tbm_bufmgr_server_init(void);
+/**
+ * @brief Set the bo_lock_type of the bufffer manager.
+ * @details set the bo_lock_type
+ * @since_tizen 5.0
+ */
+int tbm_bufmgr_set_bo_lock_type(tbm_bufmgr bufmgr, tbm_bufmgr_bo_lock_type bo_lock_type);
+
/**
* @brief Print out the information of tbm_bos.
* @since_tizen 3.0