Commit Graph

35 Commits

Author SHA1 Message Date
sauwming 033e4d7ae3
Fixed printf format warnings (#3813) 2023-12-27 10:32:32 +08:00
jimying a4c9dc0c9b
Fix scan-build reports (#3471) 2023-04-06 10:26:10 +08:00
sauwming 86b2ed38be Fixed printf format warnings (part 1) 2023-03-20 18:29:25 +08:00
jimying 8c41a770fe
Use PJ_ARRAY_SIZE() replace sizeof()/sizeof() (#3439) 2023-03-14 18:33:54 +08:00
jimying b4184bb56d
Fix build with CFLAGS -Wextra warning reports (#3428) 2023-03-14 09:56:18 +08:00
Riza Sulistyo 5ac9104514
Expand tab to spaces and remove $Id$ (#3292) 2022-11-22 16:26:54 +07:00
Benny Prijono 5604238bf5
EPOLLIN bug, epoll ioqueue refactoring and other bug fixes/enhancements to ioqueue (#3188)
* Minor: fixed warning about unused static function when the test is disabled

* Part of #3188: Add support for pj_ioqueue_create2(), ioqueue_add_to_set2(), ioqueue_remove_from_set2()

* #3188: fixing epoll ioqueue EPOLLIN problem, added pj_ioqueue_create2(), ioqueue_add_to_set2(), and ioqueue_remove_from_set2() functions, and added more unit tests

* Continuing #3188: porting t oWindows/Visual Studio

* More #3188: minor fixes

* More #3188: minor fix on Windows to remove runtime warnings

* More #3188: clearer documentation comments

* More #3188: do not check for EXCLUSIVE support if disable_exclusive is set, and added clarification about EPOLLERR flags removal

* More #3188: clarification about unregistration test in ioq_udp.c
2022-07-27 10:38:02 +07:00
bennylp 3ade7c9215 Bug fixes and enhancements in pjlib ioq_perf. Bug fixes:
1. stopping condition that is too small and bug in duration calculation causing the test to complete very quickly (in about 1ms). This would cause bandwidth calculation to be inaccurate because threads haven't had chance to run properly yet.
2. bug in total_received calculation causing wrong bandwidth calculation (it only shows bandwidth of the last socket pair).

Enhancements:
1. show statistics of each worker thread to see if threads are woken up equally.
2. show statistics of each socket pair to see if they have fair share of the bandwidth.
2022-07-08 18:57:08 +07:00
Sauw Ming 8736f50552 Re #2160: Fixed assertion in pjlib test due to uninitialized ioqueue op keys.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5953 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-15 10:22:11 +00:00
Nanang Izzuddin 88358fd268 Re #1881: Fixed compile warnings on VS2015 about declaration hides previous declaration.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5170 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-25 08:45:46 +00:00
Riza Sulistyo 25b575b336 Re #1680: Add initial support for Win64
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4537 74dad513-b988-da41-8d7b-12977e46ad98
2013-06-19 06:47:43 +00:00
Nanang Izzuddin a62ffc9d03 Re #1250: Updated the year in all copyright texts with 2011!
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3553 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-05 06:14:19 +00:00
Benny Prijono 844653c1f2 Updated copyright notice in all files to Teluu Inc., and changed the year as well
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2394 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-23 17:27:53 +00:00
Benny Prijono 32177c0418 Large changeset to replace all occurences of year 2007 with 2008 in the copyright notice
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2039 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-20 22:44:47 +00:00
Benny Prijono e3f79fd62c Ticket #474: option in ioqueue to control concurrency (to allow/disallow simultaneous/multiple callback calls)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1789 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-13 15:17:28 +00:00
Benny Prijono 8ab968fd0d Ticket #354: build PJLIB as dynamic libraries (.DSO) in Symbian
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1405 74dad513-b988-da41-8d7b-12977e46ad98
2007-07-20 08:08:30 +00:00
Benny Prijono a1e6968900 HUGE changeset to make the rest of the libraries compile with C++ mode
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1266 74dad513-b988-da41-8d7b-12977e46ad98
2007-05-11 15:14:34 +00:00
Benny Prijono 64898b54ea Fixed build error on Linux
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1236 74dad513-b988-da41-8d7b-12977e46ad98
2007-05-01 06:36:15 +00:00
Benny Prijono f260e46ce4 Initial Symbian integration to trunk for pjlib
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1235 74dad513-b988-da41-8d7b-12977e46ad98
2007-04-30 21:03:32 +00:00
Benny Prijono a771a51a61 Ticket #110: HUGE HUGE changeset to replace all occurence of year 2006 with 2007 in copyright notice in all sources
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@974 74dad513-b988-da41-8d7b-12977e46ad98
2007-02-19 01:13:53 +00:00
Benny Prijono 5accbd0457 Fixed race condition bug in ioqueue unregistration for select and Win32 IOCP backend
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@365 74dad513-b988-da41-8d7b-12977e46ad98
2006-03-30 16:32:18 +00:00
Benny Prijono ac52df49f1 Fixed bug in ioqueue: crashed when key is unregistered while another thread is running a callback
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@363 74dad513-b988-da41-8d7b-12977e46ad98
2006-03-25 10:06:00 +00:00
Benny Prijono 2cab3a5943 Added a little more threading test and put more info in ioqueue test log
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@351 74dad513-b988-da41-8d7b-12977e46ad98
2006-03-22 19:08:19 +00:00
Benny Prijono 37e8d3397b Completed testing for WinCE port
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@126 74dad513-b988-da41-8d7b-12977e46ad98
2006-01-20 21:03:36 +00:00
Benny Prijono 5dcb38d909 Set svn:eol-style property
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@65 74dad513-b988-da41-8d7b-12977e46ad98
2005-11-21 01:55:47 +00:00
Benny Prijono e0312a7f30 Pretty comments
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@51 74dad513-b988-da41-8d7b-12977e46ad98
2005-11-18 00:16:43 +00:00
Benny Prijono e722461aef Applying license to pjproject
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@49 74dad513-b988-da41-8d7b-12977e46ad98
2005-11-13 19:40:44 +00:00
Benny Prijono e91bf77a9f Initial configuration for pjlib-util
git-svn-id: https://svn.pjsip.org/repos/pjproject/main@32 74dad513-b988-da41-8d7b-12977e46ad98
2005-11-08 11:31:55 +00:00
Benny Prijono bc9861568a Tested new ioqueue framework on Linux with select and epoll
git-svn-id: https://svn.pjsip.org/repos/pjproject/main@14 74dad513-b988-da41-8d7b-12977e46ad98
2005-11-06 16:50:38 +00:00
Benny Prijono 4d974f306c Put common ioqueue functionalities in separate file to be used by both select() and epoll
git-svn-id: https://svn.pjsip.org/repos/pjproject/main@12 74dad513-b988-da41-8d7b-12977e46ad98
2005-11-06 13:32:11 +00:00
Benny Prijono a9946d5902 Changed ioqueue to allow simultaneous operations on the same key
git-svn-id: https://svn.pjsip.org/repos/pjproject/main@11 74dad513-b988-da41-8d7b-12977e46ad98
2005-11-06 09:37:47 +00:00
Benny Prijono 48a9f4c6fa Final commit before 0.3-pre3
git-svn-id: https://svn.pjsip.org/repos/pjproject/main@6 74dad513-b988-da41-8d7b-12977e46ad98
2005-11-02 12:50:58 +00:00
Benny Prijono 4766ffe101 Just changing keyword expansion
git-svn-id: https://svn.pjsip.org/repos/pjproject/main@3 74dad513-b988-da41-8d7b-12977e46ad98
2005-11-01 17:56:59 +00:00
Benny Prijono dd859a62f4 Added suppor /and fix things for SunOS port
git-svn-id: https://svn.pjsip.org/repos/pjproject/main@2 74dad513-b988-da41-8d7b-12977e46ad98
2005-11-01 16:42:51 +00:00
Benny Prijono 0a749f11c7 initial import
git-svn-id: https://svn.pjsip.org/repos/pjproject/main@1 74dad513-b988-da41-8d7b-12977e46ad98
2005-10-31 21:02:30 +00:00