Code Review
/
o-du
/
l2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix of compilation issue .[Issue-Id: ODUHIGH- 323]
[o-du/l2.git]
/
src
/
phy_stub
/
phy_stub_thread_hdl.c
diff --git
a/src/phy_stub/phy_stub_thread_hdl.c
b/src/phy_stub/phy_stub_thread_hdl.c
index
5b09351
..
f320001
100644
(file)
--- a/
src/phy_stub/phy_stub_thread_hdl.c
+++ b/
src/phy_stub/phy_stub_thread_hdl.c
@@
-44,7
+44,11
@@
pthread_t thread = 0;
* ****************************************************************/
void *GenerateTicks(void *arg)
{
* ****************************************************************/
void *GenerateTicks(void *arg)
{
- int milisec = 1; /* 1ms */
+#ifdef NR_TDD
+ int milisec = 0.5; /* 0.5ms */
+#else
+ int milisec = 1; /* 1ms */
+#endif
struct timespec req = {0};
req.tv_sec = 0;
struct timespec req = {0};
req.tv_sec = 0;
@@
-52,8
+56,7
@@
void *GenerateTicks(void *arg)
while(1)
{
while(1)
{
- nanosleep(&req, (struct timespec *)NULL);
-
+ clock_nanosleep(CLOCK_REALTIME, 0, &req, NULL);
/* Send Slot indication indication to lower mac */
l1BuildAndSendSlotIndication();
}
/* Send Slot indication indication to lower mac */
l1BuildAndSendSlotIndication();
}