Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/oapv_tpool.c
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ int oapv_tpool_spinlock_wait(volatile int *addr, int val)
return temp;
}

void threadsafe_assign(volatile int *addr, int val)
void threadsafe_assign_oapv(volatile int *addr, int val)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is recommended to use 'static' function rather than adding suffix ('_oapv').
And the the symbol would not be exported to explicitly.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GCC won't accept that. Unless it's static in xeve and openapv. From what I see xeve is no longer updated.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I checked the code, it found the threadsafe_assign() function is not used in openapv.
I think the best way is to remove the fuction in this time.

{
// thread safe volatile assign
*addr = val;
Expand Down
2 changes: 1 addition & 1 deletion src/oapv_tpool.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ tpool_result_t oapv_tpool_deinit(oapv_tpool_t *tp);
oapv_sync_obj_t oapv_tpool_sync_obj_create();
tpool_result_t oapv_tpool_sync_obj_delete(oapv_sync_obj_t *sobj);
int oapv_tpool_spinlock_wait(volatile int *addr, int val);
void threadsafe_assign(volatile int *addr, int val);
void threadsafe_assign_oapv(volatile int *addr, int val);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to remove this declaration because it may not be used in other c-code.


void oapv_tpool_enter_cs(oapv_sync_obj_t sobj);
void oapv_tpool_leave_cs(oapv_sync_obj_t sobj);
Expand Down